Integral2uMoney

FREEMIUM
Durch Integral2u | Aktualisiert 2ヶ月前 | Business
Health Check

N/A

Zurück zu allen Tutorials (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();