SpreadWebServcie.GetUserCredit Method

 

获取用户账户余额 (流量信息取决于当时账号的发送情况)

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址.

APIKey

String

Spread账号的密码或者 API Key which you can retrieve from your Spread account (My account=> Settings).

accountType

AccountType

查询的账号类型, 邮件, 短信, WhatsApp

返回结果

Dataset 包含一个单表,行: Credit(Total), Sent and ExpiryDate

例子

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);

参见

SpreadWebService Class | Spread Web Service Namespace