Ping Request

To make it easier to get started with integrations, you can use the ping request endpoint to send GET and POST request. If you receive a greeting message, you are good to go with your next steps.

Here are the available api requests and their responses

Ping

You can send a GET/POST request to the https://api.sembark.com/integrations/v1/ping endpoint. If the request succeeds, you will receive a response with 200 status code with a greeting message.

Response

{
  "greeting_message": "Hi <NAME>"
}

Here are some common implementation of the above request.

curl --location --request GET 'https://api.sembark.com/integrations/v1/ping' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <TOKEN_HERE>'
var axios = require("axios");
var config = {
  method: "get",
  url: "https://api.sembark.com/integrations/v1/ping",
  headers: {
    Accept: "application/json",
    Authorization: "Bearer <TOKEN_HERE>",
  },
};
axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data));
  })
  .catch(function (error) {
    console.log(error);
  });
var request = require("request");
var options = {
  method: "GET",
  url: "https://api.sembark.com/integrations/v1/ping",
  headers: {
    Accept: "application/json",
    Authorization: "Bearer <TOKEN_HERE>",
  },
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://api.sembark.com/integrations/v1/ping',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_TIMEOUT => 0,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Accept: application/json',
    'Authorization: Bearer <TOKEN_HERE>'
  ),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
use Illuminate\Support\Facades\Http;


$response = Http::acceptJson()
  ->withToken('<TOKEN_HERE>')
  ->baseUrl('https://api.sembark.com/integrations/v1')
  ->get('ping');

if ($response->failed()) {
  // TODO: Handle the errors
}
Share

Contact Us

Feel free to contact us with your queries or demo requests. Provide your contact details, and our team will connect with you shortly.

Corporate Office Address

C-8/11, First Floor, Sarthi Marg, near SBI Choraha, Chitrakoot, Vaishali Nagar
Jaipur, Rajasthan, India - 302021


Enter the Captcha
re-captcha