8000 GitHub - Plisio/csharp-sdk
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Plisio/csharp-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plisio C# API SDK

Plisio payment gateway API

  • API version: 1.0
  • SDK version: 1.0.0

Frameworks supported

  • .NET 4.7.1 or later

Dependencies

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

Installation

Run the following commands to generate the DLL

cd src/IO.Plisio
dotnet restore
dotnet build

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using IO.Plisio.Api;
using IO.Plisio.Client;
using IO.Plisio.Model;

Packaging

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.Plisio.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using IO.Plisio.Api;
using IO.Plisio.Client;
using IO.Plisio.Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new BalanceApi();
            var psysCid = psysCid_example;  // string | ID column from one of the supported cryptocurrencies supported by Plisio

            try
            {
                // Get cryptocurrency balance
                BalanceApiResponseDto result = apiInstance.BalancesPsysCidGet(psysCid);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BalanceApi.BalancesPsysCidGet: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://plisio.net/api/v1

Class Method HTTP request Description
BalanceApi BalancesPsysCidGet GET /balances/{psys_cid} Get cryptocurrency balance
CurrenciesApi CurrenciesFiatGet GET /currencies/{fiat} List of supported cryptocurrencies
InvoiceApi InvoicesEmailIdGet GET /invoices/email/{id} Invoice details
InvoiceApi InvoicesIdGet GET /invoices/{id} Invoice details
InvoiceApi InvoicesNewGet GET /invoices/new Create new invoice
InvoiceApi InvoicesSwitchIdGet GET /invoices/switch/{id} Invoice details
ShopApi ShopsGet GET /shops Get shop info by api_key
TransactionApi OperationsCommissionPsysCidGet GET /operations/commission/{psys_cid} Estimate cryptocurrency fee and Plisio commission
TransactionApi OperationsFeePlanPsysCidGet GET /operations/fee-plan/{psys_cid} Get Plisio fee plans
TransactionApi OperationsFeePsysCidGet GET /operations/fee/{psys_cid} Estimate fee
TransactionApi OperationsGet GET /operations List of all user transactions
TransactionApi OperationsIdGet GET /operations/{id} Transaction details
TransactionApi OperationsWithdrawGet GET /operations/withdraw Create new invoice
WithdrawApi OperationsWithdrawGet GET /operations/withdraw Create new invoice

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: URL query string

view_key

  • Type: API key
  • API key parameter name: view_key
  • Location: URL query string

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published
0