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

Publish article

POST
/oauth
channelarticle
Last modified:2023-07-12 07:56:21
Maintainer:binbin.yin

Request

Header Params
Authorization
string 
optional
Access Token
Default:
Bearer ccca8727aad585ae85e9f49163692f77f4e193982895dcacf37ac6bee3f2b0b081e235474cb1bd935a6fa81bb8aad0d6544d36791ef269e9c8cdaa4840e205dc
Body Params application/x-www-form-urlencoded
module
string 
required
Module name, Cannot be changed.
Example:
channel/article_add
level
integer 
required
The level number required for browsing articles, Created by the channel author themselves.
Example:
1
title
string 
required
Article title, Maximum length is 250 characters.
Example:
This is a title
content
string 
required
Article content, Maximum length is 5000 characters, Support for markdown.
Example:
This is a content
private
integer 
required
Is this article only visible to oneself, 1/0 selectable, If this parameter is 1, then the parameter level needs to be 0.
Example:
0
share_link
array[string]
optional
The febbox sharing link carried in the article, with optional parameters, supports up to 10.
Example:
["https://www.febbox.com/share/wsed1rtg","https://www.febbox.com/share/wsed1rtg"]

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' \
--data-urlencode 'module=channel/article_add' \
--data-urlencode 'level=1' \
--data-urlencode 'title=This is a title' \
--data-urlencode 'content=This is a content' \
--data-urlencode 'private=0' \
--data-urlencode 'share_link=https://www.febbox.com/share/wsed1rtg' \
--data-urlencode 'share_link=https://www.febbox.com/share/wsed1rtg'

Responses

🟢200OK
application/json
Body
code
integer 
required
Code
msg
string 
required
Message
server_runtime
number 
required
Server execution time
data
object 
required
Data
article_id
string 
required
Article ID
Example
{
  "code": 1,
  "msg": "success",
  "server_runtime": 0.16005,
  "data": {
    "article_id": "116"
  }
}
Modified at 2023-07-12 07:56:21
Previous
Get token
Next
Delete a ariticle
Built with