This endpoint has been created so that you can validate your credential.
In order for you to test your API integration you can user our demo account. This demo account is share with everyone who wants to test it integration therefore we recommend that you do not send real or sensitive data.
To ensure that your integration is working you can connect to the application with the following credentials :
The data in this account can be delete at any time and without any notice so do not create test with this account.
1 |
curl -X GET 'https://api.nextal.com/validation?ntenant=demo&napikey=demo' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<?php $request = new HttpRequest(); $request->setUrl('https://public-api.nextal.com/validation'); $request->setMethod(HTTP_METH_GET); $request->setQueryData(array( 'ntenant' => 'demo', 'napikey' => 'demo' )); $request->setHeaders(array( 'cache-control' => 'no-cache' )); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import http.client conn = http.client.HTTPConnection("public-api.nextal.com") headers = { 'cache-control': "no-cache" } conn.request("GET", "validation", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) |
1 2 3 4 5 6 7 8 9 10 11 12 |
require 'uri' require 'net/http' url = URI("https://public-api.nextal.com/validation?ntenant=demo&napikey=demo") http = Net::HTTP.new(url.host, url.port) request = Net::HTTP::Get.new(url) request["cache-control"] = 'no-cache' response = http.request(request) puts response.read_body |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "https://public-api.nextal.com/validation?ntenant=demo&napikey=demo" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("cache-control", "no-cache") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
var request = require("request"); var options = { method: 'GET', url: 'https://public-api.nextal.com/validation', qs: { ntenant: 'demo', napikey: 'demo' }, headers: { 'cache-control': 'no-cache' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); }); |
1 2 3 |
HttpResponse response = Unirest.get("https://public-api.nextal.com/validation?ntenant=demo&napikey=demo") .header("cache-control", "no-cache") .asString(); |