Tạo liên kết uỷ quyền OA
API này dùng để lấy đường dẫn ủy quyền OA cho ứng dụng (app)
Body
app_idstring · int64Optional
app_secretstringOptional
redirect_uristringOptional
Responses
200
A successful response
application/json
post
POST /AuthorizeOA HTTP/1.1
Host: $BASE_URL.Zalo
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"app_id": "text",
"app_secret": "text",
"redirect_uri": "text"
}
200
A successful response
{
"url": "text"
}
Request:
curl --location '$BASE_URL.Zalo/AuthorizeOA' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"app_id": "int64",
"app_secret": "string",
"redirect_uri": "string"
}'
Response:
{
"url": "string"
}
Cấu trúc body của request
Tham số
Kiểu dữ liệu
Mô tả
app_id
int64
ID của ứng dụng
app_secret
string
Khóa bí mật của ứng dụng
redirect_uri
string
Đường dẫn callback được thiết lập ở "Official Account Callback Url" trên ứng dụnghttps://developers.zalo.me/apps
Cấu trúc thuộc tính dữ liệu trả về
Tham số
Kiểu dữ liệu
Mô tả
url
string
Link liên kết uỷ quyền OA cho ứng dụng
Last updated