FebBox
  1. Channel
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. Channel

Upload an article image

POST
/oauth
channelarticleuploadimage
Last modified:2023-07-12 09:14:57
Maintainer:binbin.yin

Request

Header Params
Authorization
string 
optional
Access Token
Default:
Bearer ccca8727aad585ae85e9f49163692f77f4e193982895dcacf37ac6bee3f2b0b081e235474cb1bd935a6fa81bb8aad0d6544d36791ef269e9c8cdaa4840e205dc
Body Params multipart/form-data
module
string 
required
Module name, Cannot be changed.
Example:
channel/article_image_upload
file_img
file 
required
Image file, supports image/gif, image/jpg, image/jpeg, image/png formats, with a maximum size of 5mb
Example:
cmMtdXBsb2FkLTE2ODkxNDg1OTIwMjctNA==/test.jpeg

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' \
--header 'Authorization: Bearer ccca8727aad585ae85e9f49163692f77f4e193982895dcacf37ac6bee3f2b0b081e235474cb1bd935a6fa81bb8aad0d6544d36791ef269e9c8cdaa4840e205dc' \
--form 'module="channel/article_image_upload"' \
--form 'file_img=@"cmMtdXBsb2FkLTE2ODkxNDg1OTIwMjctNA==/test.jpeg"'

Responses

🟢200OK
application/json
Body
code
integer 
required
msg
string 
required
server_runtime
number 
required
data
object 
required
img_url
string 
required
Image Link
Example
{
    "code": 0,
    "msg": "string",
    "server_runtime": 0,
    "data": {
        "img_url": "string"
    }
}
Modified at 2023-07-12 09:14:57
Previous
Delete a ariticle
Next
Edit an article
Built with