Request an access token
You can request an access token and related authentication information by sending your username and password,This token must be carried in header request parameter when you call subsequent interfaces:Authorization: Bearer {signed_token}
.
Request method
Request parameter
parameter name | data type | description | required |
---|---|---|---|
publicKey | String | Project public Key You can find the public key in Management Panel. | yes |
secretKey | String | Project secret Key You can find the secret Key in Management Panel. | yes |
Request address
https://api-cn-east-1.17pdf.com/server/v1/oauth/token
Return parameter
parameter name | data type | description |
---|---|---|
accessToken | String | Token |
tokenType | String | Token type |
expiresIn | String | Token validity |
scope | String | Token Range |
projectName | String | Project Name |
"code": "200",
"msg": "success",
"data": {
"accessToken": "256e78bc-982f-421e-be87-df268a683b14",
"tokenType": "bearer",
"expiresIn": "41767",
"scope": "server",
"projectName": "Test"
}