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

web api authorize document

This authorization mechanism is different from Oauth API authorization, which is equivalent to obtaining authorization on a webpage. In theory, it can have the ability of a webpage version, but developers need to refer to the HTTP requests on the webpage themselves!

step 1:#

1
First Step
Go to client page: https://www.febbox.com/open/client
Create a client and obtain the client ID
redirect URIs :
After allowing login, the webpage will redirect to this URL and the login credentials will be passed through GET method
image.png
2
Second Step
Create login link
https://www.febbox.com/login/google?client_id=[client_id]&jump=[redirect_uri]
After the user successfully logs into Febbox through Google authentication, the system will redirect to the pre-set URL and pass the auth_token parameter,
Exp:https://www.domain.com/febbox?auto_token=xxxxxxxxxxx
3
Third Step
Put the obtained auth_token into the cookie, with the key being UI, and you can use some APIs on the webpage
Exp:
curl 'https://www.febbox.com/xxxxx' -H 'cookie: ui=[auth_token]'
Modified at 2024-12-11 02:45:35
Previous
FebBox Open Platform Traffic Distribution Module
Next
Get token
Built with