Upload file
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"
}
Cấu trúc body của request
Tham số
Kiểu dữ liệu
Mô tả
type
string
kiểu dữ liệu
oa_id
int64
ID của OA
Cấu trúc thuộc tính dữ liệu trả về
Tham số
Kiểu dữ liệu
Mô tả
token
string
Token của file/hình ảnh, sử dụng cho API gửi tin dạng file/hình ả
Last updated