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

Send a message

POST
/oauth
message
Last modified:2024-03-20 10:24:10
Maintainer:binbin.yin
We only allow submission of HTTP (s) links to add files, so you must provide a URL link.

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:
send_message
message_type
string 
required
Message type, The allowed values are "text", "image", "share_link"
If the value is image, then an image with the field image needs to be submitted through post.
Example:
image
to_uid
integer 
required
Opposite user ID.
Example:
31
message
string 
optional
Message Content.
Example:
test message
image
file 
optional
When the message type is image, an image needs to be uploaded.
The image size must be less than 5mb.
There are several allowed mimes: 'image/gif', 'image/jpg', 'image/jpeg', 'image/png'
Example:
cmMtdXBsb2FkLTE3MTA5MjQ2ODQwNzQtMTA=/202401260937422790_序号15_提交参赛作品(每次只能投递一个_图2_文件2.jpg

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="send_message"' \
--form 'message_type="image"' \
--form 'to_uid="31"' \
--form 'message="test message"' \
--form 'image=@"cmMtdXBsb2FkLTE3MTA5MjQ2ODQwNzQtMTA=/202401260937422790_序号15_提交参赛作品(每次只能投递一个_图2_文件2.jpg"'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-03-20 10:24:10
Previous
File(s) move
Next
Message conversation list
Built with