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 C# SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- SDK version: 1.0.0
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
- RestSharp - 105.1.0 or later
- Json.NET - 7.0.0 or later
- JsonSubTypes - 1.2.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742
Run the following command to generate the DLL
- [Mac/Linux]
/bin/sh build.sh
- [Windows]
build.bat
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
A .nuspec
is included with the project. You can follow the Nuget quickstart to create and publish packages.
This .nuspec
uses placeholders from the .csproj
, so build the .csproj
directly:
nuget pack -Build -OutputDirectory out IO.Swagger.csproj
Then, publish to a local feed or other host and consume the new package via Nuget as usual.
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class Example
{
public void main()
{
// Configure API key authorization: Bearer
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new AuthenticationApi();
var body = new Body2(); // Body2 | JSON con api_key y api_secret
try
{
// Autentica al usuario con api_key y api_secret
InlineResponse2008 result = apiInstance.RestV1AuthPost(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthenticationApi.RestV1AuthPost: " + e.Message );
}
}
}
}
All URIs are relative to https://remesita.com
Class | Method | HTTP request | Description |
---|---|---|---|
AuthenticationApi | RestV1AuthPost | POST /rest/v1/auth | Autentica al usuario con api_key y api_secret |
BusinessApi | RestV1BusinessGet | GET /rest/v1/business | Obtiene la lista de negocios registrados |
BusinessApi | RestV1PaymentLinkPost | POST /rest/v1/payment-link | Genera un link de pago |
DefaultApi | RestV1UserLockupCodeCodeGet | GET /rest/v1/user/lockup-code/{code} | Obtener datos de un cliente a partir de su codigo de cliente/referidos |
OperationsApi | RestV1OperationOrdersGet | GET /rest/v1/operation/orders | Obtiene una lista de órdenes |
OperationsApi | RestV1OperationP2pGet | GET /rest/v1/operation/p2p | Obtiene una lista de operaciones P2P |
PrepaidCardsApi | RestV1CardNumberTogglePost | POST /rest/v1/card/{number}/toggle | Bloquea o desbloquea una tarjeta |
PrepaidCardsApi | RestV1CardNumberTransactionsPgPgSizeGet | GET /rest/v1/card/{number}/transactions/{pg}/{pgSize} | Obtiene las transacciones de una tarjeta |
PrepaidCardsApi | RestV1CardTransferBetweenPost | POST /rest/v1/card/transfer-between | Transfiere saldo entre cuentas Remesita |
PrepaidCardsApi | RestV1CardsGet | GET /rest/v1/cards | Obtiene la lista de tarjetas prepagadas |
ProfileApi | RestV1BalanceGet | GET /rest/v1/balance | Obtiene datos de balance |
ProfileApi | RestV1UserLockupCodeCodePost | POST /rest/v1/user/lockup-code/{code} | Obtener datos de un cliente a partir de su codigo de cliente/referidos |
- Model.Body
- Model.Body1
- Model.Body2
- Model.InlineResponse200
- Model.InlineResponse2001
- Model.InlineResponse2002
- Model.InlineResponse2003
- Model.InlineResponse2003Items
- Model.InlineResponse2004
- Model.InlineResponse2004Items
- Model.InlineResponse2005
- Model.InlineResponse2005Items
- Model.InlineResponse2006
- Model.InlineResponse2006Items
- Model.InlineResponse2007
- Model.InlineResponse2008
- Model.InlineResponse2008User
- Model.InlineResponse2009
- Model.InlineResponse401
- Model.InlineResponse404
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header