-
Notifications
You must be signed in to change notification settings - Fork 145
Closed
Description
Hello,
I am using intercom-php and try to save user info,
- can't save information like: avatar, or social_profiles
$newUser = $intercom->createUser(array(
"email" => 'test@gmail.com',
"name" => 'Hello World',
"last_request_at" => time(),
"created_at" => time(),
"avatar" => array(
"type" => "avatar",
"image_url" => 'http://url.to.image'
),
"location_data" => array(
"type" => "location_data",
"latitude" => $location[1],
"longitude" => $location[0]
),
"social_profiles" => array(
"type" => "social_profile",
"name" =>"facebook",
"id" => '1234',
"username" => 'Facebook User Name',
"url" => 'http://facebook.url'
)
));
In intercom user with email 'test@gmail.com' was created , but avatar and social_profiles data are empty.
What I missed? - Can't create message from user..
$text = $intercom->createMessage(array(
"message_type" => "inapp",
"subject" => $subject,
"body" => $text,
"template" => "plain",
"from" => array(
"type" => "user",
"id" => '123a'
),
"to" => array(
"type" => "user",
"id" => '123b'
)
));
Users Ids : '123a' & '123b' - exist in intercom.
Any ideas??
P.S. There are no errors in both cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels