curl --location
-H "publicKey : <your_publicKey> "
-H "secretKey : <your_secretKey> "
-H "token: <your_token> "
--data '{"phone":"<phone_number_of_customer>"}'
--request POST https://global.nextpoint.me/next-global/nextpoint/api/customer
$ch = curl_init();
$url = 'https://global.nextpoint.me/next-global/nextpoint/api/customer';
$body = array( 'phone' => '<phone_number_of_customer>' );
$headers = array(
'publicKey: <your_publicKey>',
'secretKey: <your_secretKey>'
'token: <your_token>' );
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_POST,true );
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt($ch, CURLOPT_POSTFIELDS,
json_encode( $body )
);
$response = curl_exec($ch);
url_close($ch);
echo $response;
const axios = require('axios');
const url = 'https://global.nextpoint.me/next-global/nextpoint/api/customer';
const headers = {
'publicKey' : '<your_publicKey>',
'secretKey' : '<your_secretKey>' };
'Authorization': 'Bearer ' : '<your_token>' };
const body = { phone: '<phone_number_of_customer>' }
axios.post( url, body, { headers } ).then(response => {
console.log(response.data);
}).catch(error => {
console.log(error); });
import requests url = 'https://global.nextpoint.me/next-global/nextpoint/api/customer';
headers = {
'publicKey' : '<your_publicKey>',
'secretKey' : '<your_secretKey>',
'token' : '<your_token>' }
body = { 'phone': '<phone_number_of_customer>', }
response = requests.post(url, headers=headers )
if response.status_code == 200:
print(response.text)
else:
print(f"Error {response.status_code}: {response.reason}")