Credits
Check your SendMode credits balance.
Available HTTP Methods: GET
Parameters
Parameter | Type | Description | Required |
---|---|---|---|
access_key | string | Your unique access key. | Yes |
Code Examples
C#
string url = string.Format("http://rest.sendmode.com/v2/credits?access_key={0}", "YOUR_ACCESS_KEY"); using (var client = new WebClient()) { var responseString = client.DownloadString(url); }
php
$response = file_get_contents("http://rest.sendmode.com/v2/credits?access_key=YOUR_ACCESS_KEY");
Java
URL url = new URL("http://rest.sendmode.com/v2/credits?access_key=YOUR_ACCESS_KEY"); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setRequestMethod("GET"); BufferedReader in = new BufferedReader( new InputStreamReader(con.getInputStream())); String inputLine; StringBuffer content = new StringBuffer(); while ((inputLine = in.readLine()) != null) { content.append(inputLine); } in.close(); con.disconnect();
Response
{ "status":"OK", "statusCode":0, "balance":7502.4400 }