SpreadWebServcie.GetUserCredit Method

 

Get User Credit (the credit information depends on the situation of your account)

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

accountType

AccountType

the type of account , Email or SMS or WhatsApp

Return Value

Dataset containing a single table with columns Credit(Total), Sent and ExpiryDate

Example

string loginEmail = "Spread@reasonables.com";

string APIKey = "7D2B83DF-B4A3-4E42-8D77-E6B22A1004BE";

SpreadAPI.SpreadWebService MySpread = new SpreadAPI.SpreadWebService();

DataSet result = MySpread.GetUserCredit(loginEmail, APIKey , SpreadAPI.AccountType.Email);

See Also

SpreadWebService Class | Spread Web Service Namespace