ملی پیامک

مستندات وب‌سرویس پیامک

ملی پیامک

مستندات وب‌سرویس پیامک

ملی پیامک

مستندات وب‌سرویس پیامک

دریافت میزان اعتبار

آخرین به روز رسانی: ۱۱ شهریور ۱۳۹۷

آدرس وب سرویس

متد GetCredit

از این متد برای دریافت موجودی پیامک استفاده می‌شود.

پارامتر های ورودی

نام پارامترنوع پارامترتوضیحات
UsernameStringنام کاربری مربوط به حساب شما در سامانه
PasswordStringکلمه عبور مربوط به حساب شما در سامانه

مقدار بازگشتی

نام پارامترنوع پارامترتوضیحات
ValueStringاگر اطلاعات صحیح باشد مقدار موجودی را دریافت خواهید کرد. در غیر این صورت مقدار Null دریافت می‌کنید
RetStatusIntاگر درخواست موفق باشید مقدار ۱ دریافت می‌کنید
StrRetStatusStringاگر درخواست موفق باشید مقدار ok دریافت می‌کنید
$username = 'username';
$password = 'password';
$api = new MelipayamakApi($username,$password);
$sms = $api->sms();
$sms->getCredit();
$username = 'username';
$password = 'password';
$api = new MelipayamakApi($username,$password);
$sms = $api->sms('soap');
$sms->getCredit();
const username = 'username';
const password = 'password';
const api = new MelipayamakApi(username,password);
const sms = api.sms();
sms.getCredit();
const username = 'username';
const password = 'password';
const api = new MelipayamakApi(username,password);
const sms = api.sms('soap');
sms.getCredit();
final String username = "username";
final String password = "password";
RestClient restClient = new RestClient(username, password);
restClient.GetCredit();
final String username = "username";
final String password = "password";
SoapClient soapClient = new SoapClient(username, password);
soapClient.GetCredit();
const string username = "username";
const string password = "password";
RestClient restClient = new RestClient(username, password);
restClient.GetCredit();
const string username = "username";
const string password = "password";
SendSoapClient soapClient = new SendSoapClient();
soapClient.GetCredit(username, password);
Const  username As String = "username"
Const  password As String = "password"
Dim restClient As New RestClient(username, password)
restClient.GetCredit()
Const  username As String = "username"
Const  password As String = "password"
Dim soapClient As New SendSoapClient()
soapClient.GetCredit(username, password)
let username: String = "username"
let password: String = "password"
var restClient = RestClient(user: username, pass: password)
restClient.GetCredit()
let username: String = "username"
let password: String = "password"
var soapClient = SoapClient(user: username, pass: password)
soapClient.GetCredit()
NSString *username = @"username";
NSString *password = @"password";
RestClient *restClient = [[RestClient alloc] initCred:username password:password];
[restClient GetCredit];
NSString *username = @"username";
NSString *password = @"password";
SoapClient *soapClient = [[SoapClient alloc] initCred:username password:password];
[soapClient GetCredit];
username = 'username'
password = 'password'
api = Api(username,password)
sms = api.sms()
sms.get_credit()
username = 'username'
password = 'password'
api = Api(username,password)
sms = api.sms('soap')
sms.get_credit()
final String username = "username";
final String password = "password";
RestClient restClient = new RestClient(username, password);
restClient.GetCredit();
final String username = "username";
final String password = "password";
SoapClient soapClient = new SoapClient(username, password);
soapClient.GetCredit();
username = 'username'
password = 'password'
api = Melipayamakapi.new(username,password)
sms = api.sms
sms.get_credit
username = 'username'
password = 'password'
api = Melipayamakapi.new(username,password)
sms = api.sms('soap')
sms.get_credit
my $username = "username";
my $password = "password";
my $restClient = new RestClient($username, $password);
$restClient->GetCredit();
my $username = "username";
my $password = "password";
my $soapClient = new SoapClient($username, $password);
$soapClient->GetCredit();
local username = "username";
local password = "password";
GetCredit(username, password);
local username = "username";
local password = "password";
GetCredit(username, password);
username := "username";
password := "password";
GetCredit(username, password);
username := "username";
password := "password";
GetCredit(username, password);
val username = "username"
val password = "password"
val restClient = new RestClient(username, password)
restClient.GetCredit()
val username = "username"
val password = "password"
val soapClient = SoapClient(username, password)
soapClient.GetCredit()
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length



  
    
      double
    
  



{   "Value": "Status",   "RetStatus": 1,   "StrRetStatus": "Ok" }