Last updated 3 months ago
Note:
For APIs used for Shop, the API key is: . The base_url information of the .
For APIs used for Partner, the API key is: . The base_url information of the .
Request:
curl --location '$BASE_URL.OA/UploadFile' \ --header 'Authorization: Bearer $API_KEY' \ --form 'type="image"' \ --form 'oa_id="<int64>"' \ --form 'file=@"/path/to/file"'
Response:
{ "token": "string" }
Request body structure
type
string
data type
id
int64
OA ID
Return data attribute structure
token
File/image token, used for API sending file/image messages
<api_key>
<shop_key>