Integral2uMoney

FREEMIUM
От Integral2u | Обновлено לפני חודשיים | Business
Health Check

N/A

Назад ко всем руководствам (1)

Simple to use Rest or Http Client

Examples and Contract Type Classes can be found on GitHub included are two helper clases to aid in your integration.

Example code:

using Integral2uMoneyContracts.V1;
//You rapid API Key should not be made publicly visible
//Search appsettings or environment variables
var rest = new Integral2uRestApi("[Your rapid API Key Here]");
var restResult = rest.DiscountFromRetailNet(1.0, 0.5);
Console.Out.WriteLine(restResult);
Console.Out.WriteLine(rest.RetailFromNetDiscount(0.5, restResult));

//You rapid API Key should not be made publicly visible
//Search appsettings or environment variables
var http = new Integral2uHttpApi("[Your rapid API Key Here]");
var httpResult = rest.DiscountFromRetailNet(1.0, 0.5);
Console.Out.WriteLine(httpResult);
Console.Out.WriteLine(rest.RetailFromNetDiscount(0.5, httpResult));

Console.In.ReadLine();