Bes_Open_API_English
  1. Authentication
Bes_Open_API_English
  • Development guideline
    • BesChannels Product Overview
    • Log Update
  • Authentication
    • openapi-Get token
      POST
  • Leads
    • Get Leads List
      POST
    • Get Leads Details
      POST
    • Leads Create/Add
      POST
    • Leads Edit
      POST
    • Leads Delete
      POST
    • Get List of Remark
      POST
    • Add Remarks
      GET
    • Leads Assignment
      POST
    • Get Leads Activities & Attributes
      POST
    • Get Leads Behaviors
      POST
  • Contents
    • Get Content List
      POST
  • Events
    • Get Events List
      POST
  • Table Structure
    • Application acquiry
      POST
    • Table Structure List
      POST
    • Table Structure Details
      POST
  • Behaviors-NEW
    • Add Application
      POST
    • Add Activities
      GET
    • Get Activities
      POST
    • Get Activities Attributes
      POST
    • Add Activities Attributes
      POST
    • Add Users Behaviors
      POST
  • Others
    • Error code
  1. Authentication

openapi-Get token

POST
/api/get-access-token
运营后台(Super)/OpenApi
Access Token is the globally unique interface call credential of BesChannels OpenAPI, and the token is required when calling each interface. Developers need to properly save.
The storage of access_token must reserve at least 512 characters.
The validity period of access_token is currently 2 hours and needs to be refreshed regularly. During this period, if it is generated again, if the remaining time of the token exceeds 20 minutes, the original token will still be returned, and the remaining time will be updated to the actual remaining time. If the remaining time of the original token is less than 20 minutes, a new one will be generated to replace the old one , and the update is 2 hours. If the old one is still valid after the update, it can still be used normally. That is to say, when the remaining time is less than 20 minutes, there may be two available tokens at the same time

Request

Body Params application/json
appId
string 
required
appSecret
string 
required
Example
{
    "appId": "zq_437542ad",
    "appSecret": "D7F79B4B685CBD55LNYD26C744E98202"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.beschannels.com/api/get-access-token' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "zq_437542ad",
    "appSecret": "D7F79B4B685CBD55LNYD26C744E98202"
}'

Responses

🟢200Success
application/json
Body
object {0}
Example
{"code":0,"msg":"成功","data":{"expires":7189,"access_token":"uURA1lnYsBr22I6UYoLZH0s9y3HU2Xsn7UHA4dIDgHPYHwZqTpWJr_GwfBokKNQZfF7rWgukJmjo_Jg9cNfN_4VO2lJpkhHOoOS9RA_MVi-x4nyJolWKNq3l8KhslWxk"}}
Modified at 2023-06-07 11:09:17
Previous
Log Update
Next
Get Leads List
Built with