FebBox
  1. Authentication
FebBox
  • Platform Introduction
    • FebBox Creator Channel Payment Policy
    • FebBox Open Platform Traffic Distribution Module
  • Authentication
    • web api authorize document
    • Get token
      POST
  • Channel
    • Publish article
      POST
    • Delete a ariticle
      POST
    • Upload an article image
      POST
    • Edit an article
      POST
    • Get levels
      POST
    • Subscribers
      POST
  • File
    • Add a file
      POST
    • Task query
      POST
    • Get file(s) download url
      POST
    • File list
      POST
    • Create a directory
      POST
    • File rename
      POST
    • File(s) delete
      POST
    • File(s) copy
      POST
    • File(s) move
      POST
  • Message
    • Send a message
      POST
    • Message conversation list
      POST
    • Mark all messages as read
      POST
    • Get a list of messages in the conversation
      POST
    • Delete a message conversation
      POST
    • Check if there are any new unread messages
      POST
  1. Authentication

Get token

POST
/oauth/token
Last modified:2023-07-12 07:58:20
Maintainer:binbin.yin
Get access_token and refresh_token based on client_id and client_secret.

Request

Body Params application/x-www-form-urlencoded
client_id
string 
required
Client ID
Example:
client_id
client_secret
string 
required
Client Secret
Example:
client_secret
grant_type
string 
required
Grant type, access_token/refresh_token
Example:
client_credentials
refresh_token
string 
optional
Use when refreshing tokens
Example:
refresh_token

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://api.febbox.com/oauth/token' \
--data-urlencode 'client_id=client_id' \
--data-urlencode 'client_secret=client_secret' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'refresh_token=refresh_token'

Responses

🟢200OK
application/json
Body
code
integer 
required
Status code, 1 represents success, less than 1 represents failure
msg
string 
required
message
data
object 
optional
data
access_token
string 
optional
access token
expires_in
integer 
optional
token validity period, in seconds
token_type
string 
optional
token type
scope
null 
optional
oauth2 scope
refresh_token
string 
optional
refresh token, used to exchange for a new access_token when the access_token expires
Example
{
  "code": 0,
  "msg": "string",
  "data": {
    "access_token": "string",
    "expires_in": 0,
    "token_type": "string",
    "scope": null,
    "refresh_token": "string"
  }
}
Previous
web api authorize document
Next
Publish article
Built with