Unicode C++ / Support API / Detect Best Language for User
Back to Collection Items
void ChilkatSample(void)
{
http.put_BasicAuth(true); http.put_Login(L"login"); http.put_Password(L"password"); success = http.QuickGetSb(L"https://example.zendesk.com/api/v2/locales/detect_best_locale",sbResponseBody); jResp.LoadSb(sbResponseBody); jResp.put_EmitCompact(false);
}
Curl Command
curl -u login:password -X GET
-H "Accept: application/json"
https://example.zendesk.com/api/v2/locales/detect_best_locale
Postman Collection Item JSON
{
"name": "Detect Best Language for User",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/locales/detect_best_locale",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"locales",
"detect_best_locale"
]
},
"description": "#### Allowed For\n\n* Anyone\n"
},
"response": [
{
"name": "Success response",
"originalRequest": {
"method": "GET",
"header": [
{
"description": "Added as a part of security scheme: basic",
"key": "Authorization",
"value": "Basic <credentials>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/locales/detect_best_locale",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"locales",
"detect_best_locale"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"locale\": {\n \"created_at\": \"<dateTime>\",\n \"id\": \"<integer>\",\n \"locale\": \"<string>\",\n \"name\": \"<string>\",\n \"updated_at\": \"<dateTime>\",\n \"url\": \"<string>\"\n }\n}"
}
]
}