Profile API
API này để nhận thông tin người dùng đã login thành công trên Web qua Google, Facebook, etc. Dựa vào ID của người dùng, smart agent biết đang trao đổi với đối tượng nào: tên là gì, ID là gì.
Đẩy thông tin của người dùng sau khi login
POST https://hostname/profile-api/v1/profiles/user
Headers
Name
Type
Description
accesstoken
string
mỗi partner sẽ được cấp 1 access token
partnerid
string
partner ID
content-type
string
application/json
Request Body
Name
Type
Description
userId
string
user ID
first_name
string
first name
last_name
string
last name
profile_pic
string
profile picture url
gender
string
giới tính
string
user email
locale
string
locale
timezone
string
time zone
{
"name": "Cake's name",
"recipe": "Cake's recipe name",
"cake": "Binary cake"
}{
"message": "Ain't no cake like that."
}Last updated
Was this helpful?