测试端点
以下是可用于测试身份验证的端点示例:
ENDPOINT
/test/API_KEY方法
GETENDPOINT
/test/API_KEY方法
POST代码示例
- cURL
- Python
- JavaScript
- Java
curl --location --request GET 'https://api-auth.sandbox.qitech.app/test/{{API_KEY}}' \
--header 'API-CLIENT-KEY: {{API_KEY}}' \
--header 'Authorization: {{JWT_TOKEN}}'
import requests
url = "https://api-auth.sandbox.qitech.app/test/{{API_KEY}}"
headers = {
"API-CLIENT-KEY": "{{API_KEY}}",
"Authorization": "{{JWT_TOKEN}}"
}
response = requests.get(url, headers=headers)
const response = await fetch('https://api-auth.sandbox.qitech.app/test/{{API_KEY}}', {
method: 'GET',
headers: {
'API-CLIENT-KEY': '{{API_KEY}}',
'Authorization': '{{JWT_TOKEN}}'
}
});
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api-auth.sandbox.qitech.app/test/{{API_KEY}}")
.addHeader("API-CLIENT-KEY", "{{API_KEY}}")
.addHeader("Authorization", "{{JWT_TOKEN}}")
.build();
Response response = client.newCall(request).execute();