Skip to main content

SDK para la integración con Cubacel

Project description

SythonLab Cubacel SDK

A Python library for integration with Cubacel.

Installation

  pip install sythonlab-cubacel-sdk

Environment variables

CUBACEL_HOST: Cubacel API access URL.

CUBACEL_USERNAME: Username for authentication.

CUBACEL_PASSWORD: Password for authentication.

CUBACEL_SIM_TUR_ID: ID provided by Cubacel for the sale of tourist SIM Tur cards.

CUBACEL_MIN_BATCH_SIMTUR: Minimum number of SIM Tur cards allowed in a batch.

CUBACEL_MAX_BATCH_SIMTUR: Maximum number of SIM Tur cards allowed in a batch.

CUBACEL_ENVIRONMENT: dev or prod.

CUBACEL_VERBOSE_ENABLED: 0 or 1. Allows displaying request and response data in the console.

How to use?

from sythonlab_cubacel_sdk.sdk import CubacelSDK

cubacel = CubacelSDK()
# custom_config_file: Optional parameter, specifies the path to a .json file to save the configuration.

cubacel.ACTION(...)

Available actions

  • sale_sim_tur: Execute a SIM Tur sale transaction.
  • get_services: Get services list.
  • get_transaction_id: Get new transaction ID.
  • get_provinces: Get provinces list.
  • get_nationalities: Get nationalities list.
  • get_offices: Get commercial offices list.
  • get_sale: Get information about a sale.
  • recharge: Execute a recharge to a mobile number.
  • change_password: Change password.
  • request_batch: Request a batch of tourist SIM cards.
  • get_batch_sale: Get information about a batch of tourist SIM cards.
  • cancel_batch_sale: Cancel a batch of tourist SIM cards.
  • sale_sim_tur_card: Add to the sale of a tourist SIM card from a batch.
  • cancel_sale: Cancel a sale.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sythonlab_cubacel_sdk-1.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file sythonlab_cubacel_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: sythonlab_cubacel_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for sythonlab_cubacel_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b7012e0c09bfb8d35f675ebf54a4ddd55a188605c4331b85333dff56aa89e59a
MD5 22223738987ab43e66e51dc2e9a5d7df
BLAKE2b-256 b3f3bb163131c75639f819d8909719fbe91d476425f60102a512cb4d99deeb49

See more details on using hashes here.

File details

Details for the file sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sythonlab_cubacel_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e81956c3e1e6bd9d17a75fcfa23058e99804224bf8c20dd6b8417f94d914dfb
MD5 db5543b00c911723f6ab67cfd50968f4
BLAKE2b-256 b8012825b39097914a779d4a058228d11ad4861524747d381b6858e25012827a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page