1. Baidu general reference: authentication mechanism
https://ai.baidu.com/ai-doc/REFERENCE/Ck3dwjhhu
Introduction
this document is mainly for HTTP API callers. Baidu AIP open platform uses oauth2.0 authorization to call the open API. When calling the API, you must bring access in the URL_ Token parameter. The process of obtaining access token is as follows:
Get access token
request URL data format
To the authorized service address https://aip.baidubce.com/oauth/2.0/token Send the request (post is recommended), and take the following parameters in the URL:
grant_ Type: required parameter, fixed to client_ credentials;
client_ ID: required parameter, API key applied
client_ Secret: required parameter, the applied secret key;
https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=Va5yQRHlA4Fq5eR3LT0vuXV4&c
2. However, the result of my test is:
https://aip.baidubce.com/oauth/2.0/token
Postman test
{
" grant_type": "client_credentials",
"client_id": "pGB2vIVTXn9ATexEsqMIDYO",
"client_secret": "5yNZqWSIuj4PVRGdavjw1e5U3z9K6Kb"
}
Get the token value and display the following results
{
"error": "unsupported_grant_type",
"error_description": "The authorization grant type is not supported"
}
Read More:
- OpenCV(-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type [How to Solve]
- [Solved] Postman Error: Unsupported Media Type
- [Solved] OpenCV error: #error “This header with legacy C API declarations has been removed from OpenCV.
- How to Solve Error: Missing type map configuration or unsupported mapping
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- Opencv c++ Read Video Error: capture.isOpened() Return false
- blackduck Error: Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.
- How to Solve VMware Workstation Error: The VMware Authorization Service is not running.
- Linux C++ Error: invalid use of incomplete type [How to Solve]
- C++ Error: terminating with uncaught exception of type std::out_of_range: vector Abort trap: 6
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] Opencv Calls PB Model Error: cv2.error: OpenCV(4.2.0)…
- C++ new types may not be defined in a return type Error?
- [Solved] Opencv3. X fatal error: opencv2/nonfree/nonfree.hpp: there is no such file or directory
- [Solved] VScode Run C++ File Error: fatal error:opencv2\core.hpp:No such file or diretory
- Opencv Can not Find opencv2/gpu/gpu.hpp [How to Solve]
- [Solved] Android 5.1 code compilation error: Unsupported reloc 43
- [Solved] Error c2226: syntax error: unexpected ‘lpstr’ type
- Libtorch Error: Expected object of type Variable but found type CUDALongType for argument #2 ‘index’
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is