Api de remesita.com para desarrolladores. Primero obten tu apiKey y apiSecret, y para autenticarte debes ejecutar el endpoint rest/v1/auth en la respuesta obtendrás un token de acceso que debes usar en el resto de peticiones
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)
Then import the package:
import swagger_client Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import swagger_clientPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Bearer
configuration = swagger_client.Configuration()
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Authorization'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.AuthenticationApi(swagger_client.ApiClient(configuration))
body = swagger_client.Body2() # Body2 | JSON con api_key y api_secret
try:
# Autentica al usuario con api_key y api_secret
api_response = api_instance.rest_v1_auth_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthenticationApi->rest_v1_auth_post: %s\n" % e)All URIs are relative to https://remesita.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthenticationApi | rest_v1_auth_post | POST /rest/v1/auth | Autentica al usuario con api_key y api_secret |
| BusinessApi | rest_v1_business_get | GET /rest/v1/business | Obtiene la lista de negocios registrados |
| BusinessApi | rest_v1_payment_link_post | POST /rest/v1/payment-link | Genera un link de pago |
| OperationsApi | rest_v1_operation_orders_get | GET /rest/v1/operation/orders | Obtiene una lista de órdenes |
| OperationsApi | rest_v1_operation_p2p_get | GET /rest/v1/operation/p2p | Obtiene una lista de operaciones P2P |
| PrepaidCardsApi | rest_v1_card_number_toggle_post | POST /rest/v1/card/{number}/toggle | Bloquea o desbloquea una tarjeta |
| PrepaidCardsApi | rest_v1_card_number_transactions_pg_pg_size_get | GET /rest/v1/card/{number}/transactions/{pg}/{pgSize} | Obtiene las transacciones de una tarjeta |
| PrepaidCardsApi | rest_v1_card_transfer_between_post | POST /rest/v1/card/transfer-between | Transfiere saldo entre cuentas Remesita |
| PrepaidCardsApi | rest_v1_cards_get | GET /rest/v1/cards | Obtiene la lista de tarjetas prepagadas |
| ProfileApi | rest_v1_balance_get | GET /rest/v1/balance | Obtiene datos de balance |
| ProfileApi | rest_v1_user_lockup_code_code_post | POST /rest/v1/user/lockup-code/{code} | Obtener datos de un cliente a partir de su codigo de cliente/referidos |
| DefaultApi | rest_v1_user_lockup_code_code_get | GET /rest/v1/user/lockup-code/{code} | Obtener datos de un cliente a partir de su codigo de cliente/referidos |
- Body
- Body1
- Body2
- InlineResponse200
- InlineResponse2001
- InlineResponse2002
- InlineResponse2003
- InlineResponse2003Items
- InlineResponse2004
- InlineResponse2004Items
- InlineResponse2005
- InlineResponse2005Items
- InlineResponse2006
- InlineResponse2006Items
- InlineResponse2007
- InlineResponse2008
- InlineResponse2008User
- InlineResponse2009
- InlineResponse401
- InlineResponse404
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header