C# SDK

Official AltiviaCloud SDK for C#. Source code lives in sdks/csharp.

Installation

bash
Add AltiviaCloudClient.cs from sdks/csharp to your project

Quick Example

C#
using AltiviaCloud;

using var client = new AltiviaCloudClient("ac_live_YOUR_API_KEY");

var balance = await client.GetBalanceAsync();
var countries = await client.GetCountriesAsync();
var order = await client.CreateOrderAsync("country_id", "service_id");
var sms = await client.GetSmsAsync(order.GetProperty("id").GetString()!);

Available Methods

  • getBalance() — wallet balance
  • getCountries() — list countries
  • getServices() — list services
  • getPrices(countryId, serviceId) — pricing
  • createOrder(countryId, serviceId) — purchase number
  • getOrder(id) — order details
  • listOrders(status?) — list orders
  • cancelOrder(id) — cancel order
  • finishOrder(id) — finish order
  • getSms(id) — SMS messages