API Document

Get sample code from below:

// Get cURL resource
$curl = curl_init();
// Set API Url
curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://vspagy.com/dashboard/api?cid=xxx&vid=xxxx&tkn=xxxxxxxx&rt=x&tid={TxnID}&Name={Name}',
]);
// Send the request & save response to $resp
$response = curl_exec($curl);
// Close request to clear up some resources
curl_close($curl);
You will get the complete API response in $response

<?php
$aContext = array(
'http' => array(
'request_fulluri' => true,
),
);
$cxContext = stream_context_create($aContext);
$response = file_get_contents("http://vspagy.com/dashboard/api?cid=xxx&vid=xxxx&tkn=xxxxxxxx&rt=x&tid={TxnID}&Name={Name}", False, $cxContext);
echo $response;
?>
You will get the complete API response in $response

import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
public class HttpURLConnectionExample {
public static void main(String[] args) throws Exception {
HttpURLConnectionExample http = new HttpURLConnectionExample();
http.sendGet();
}
// HTTP GET request
private void sendGet() throws Exception {
String url = "http://vspagy.com/dashboard/api?cid=xxx&vid=xxxx&tkn=xxxxxxxx&rt=x&tid={TxnID}&Name={Name}";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
// optional default is GET
con.setRequestMethod("GET");
int responseCode = con.getResponseCode();
System.out.println("\nSending 'GET' request to URL : " + url);
System.out.println("Response Code : " + responseCode);
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
} in.close();
//print result
System.out.println(response.toString());
}
}
You will get the complete API response in response variable

import http.client
connection = http.client.HTTPSConnection("http://vspagy.com")
connection.request("GET", "/dashboard/api?cid=xxx&vid=xxxx&tkn=xxxxxxxx&rt=x&tid={TxnID}&Name={Name}")
response = connection.getresponse()
print("Status: {} and reason: {}".format(response.status, response.reason))
connection.close()
You will get the complete API response in response object

const https = require('https');
https.get('http://vspagy.com/dashboard/api?cid=xxx&vid=xxxx&tkn=xxxxxxxx&rt=x&tid={TxnID}&Name={Name}', (resp) => {
let data = '';
// A chunk of data has been recieved.
resp.on('data', (chunk) => {
data += chunk;
});
// The whole response has been received. Print out the result.
resp.on('end', () => {
console.log(data);
});
}).on("error", (err) => {
console.log("Error: " + err.message);
});

API details Click To Download