Image Tagging API Authentication
We provide authentication using HTTP Basic Authentication. You can append the base64 string of access key and secret key pair in the request header, which is easy to use and suitable for API calls from backend systems.
| name | description |
|---|---|
| access_key | Access key string. |
| secret_key | Secret key string. Keep the secret key in a safe place and do not call the API directly from the client-side for security reasons. |
For the first method, the following steps describe how a client request URL is generated before making an API call.
- Generate the authorization information using the following steps:
- Concatenate the access key and secret together, separated by a colon
access_key:secret_key - Encode the above information into a base64 string (base64 encoding)
- Concatenate the access key and secret together, separated by a colon
- Put the authorization information in the header
Authorization. Remember to appendBasicbefore the base64 encoded key pair, in accordance with the HTTP Basic Authentication specifications.
The format of authorization in the header is like this:
Authorization: Basic access_key:secret_key.
curl http://virecognition.visenze.com/v1/image/recognize \
-u access_key:secret_key