API Connect
Connect
GET /https://global.nextpoint.me/next-global/nextpoint/api/connection
curl --location
-H "publicKey : <your_publicKey> "
-H "secretKey : <your_secretKey> "
--request GET https://global.nextpoint.me/next-global/nextpoint/api/connection
$ch = curl_init();
$url = 'https://global.nextpoint.me/next-global/nextpoint/api/connection';
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_HTTPGET, true );
$headers = array(
'publicKey: <your_publicKey>',
'secretKey: <your_secretKey>' );
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
$response = curl_exec($ch);
url_close( $ch );
echo $response;
const axios = require('axios');
const url = 'https://global.nextpoint.me/next-global/nextpoint/api/connection';
const headers = {
'publicKey': '<your_publicKey>',
'secretKey': '<your_secretKey>' };
axios.get( url , { headers } ).then( response => {
console.log( response.data );
}).catch(error => {
console.log(error);
});
import requestsurl = 'https://global.nextpoint.me/next-global/nextpoint/api/connection';
headers = {
'publicKey': '<your_publicKey>',
'secretKey': '<your_secretKey>' }
response = requests.get(url, headers=headers )
if response.status_code == 200:
print(response.text)
else:
print(f"Error {response.status_code}: {response.reason}")
Common properties
publicKey คีย์อินเทอร์เฟซการเขียนโปรแกรมแอปพลิเคชันคือรหัสที่ส่งผ่านโดยแอปพลิเคชันคอมพิวเตอร์ จากนั้นโปรแกรมหรือแอปพลิเคชันจะเรียก API หรืออินเทอร์เฟซการเขียนโปรแกรมแอปพลิเคชันเพื่อระบุผู้ใช้ผู้พัฒนาหรือเรียกโปรแกรมไปยังเว็บไซต์.
secretKey คีย์ลับคือส่วนของข้อมูลหรือพารามิเตอร์ที่ใช้ในการเข้ารหัสและถอดรหัสข้อความในการเข้ารหัสแบบสมมาตรหรือคีย์ลับ
Headers
Name
Value
publicKey
สามารถคัดลอกได้ที่หน้า เปิดใช้งาน API
secretKey
สามารถคัดลอกได้ที่หน้า เปิดใช้งาน API
Response
{
"statusCode" : 200 ,
"status" : "OK" ,
"message" : "Connection successfully." ,
"token" : "eyJhbGciOiJIUzI1NiIsInR5c************************"
}{
"statusCode": 401,
"status": "AuthenticationError",
"message": "Not Found."
}
Last updated