Когда я посылаю сообщение по UnificationEngine в Pinterest затем получить так много ошибок основных ошибок:unificationengine не работает на Pinterest
[email protected]:~/Code/laravel$ curl -XPOST https://apiv2.unificationengine.c
om/v2/message/send --data "{ \"message\": { \"receivers\": [{\"name\": \"Me\",
\"address\": \"test.test\" , \"Connector\": \"pinterest\" }],\"subject\":\"tes
t\",\"parts\": [{\"id\": \"0\", \"contentType\": \"binary\" , \"size\": 2211,\"
type\": \"image_link\", \"name\":\"file name\",\"data\":\"http://www.hd-wallpap
ersdownload.com/upload/bulk-upload/desktop-pictures-of-cute-kittens-and-cats-wa
llpaper.jpg\",\"sort\":1},{\"id\": \"1\",\"contentType\": \"text/plain\", \"dat
a\":\"test\" ,\"size\": 100,\"type\": \"body\",\"sort\":0}, {\"id\": \"2\",\"co
ntentType\": \"text/plain\", \"data\":\"description2\" ,\"size\": 100,\"type\":
\"link_description\",\"sort\":2},{\"id\": \"3\",\"contentType\": \"text/plain\"
, \"data\":\"title2\" ,\"size\": 100,\"type\": \"link_title\",\"sort\":3},{\"id
\": \"4\",\"contentType\": \"text/plain\", \"data\":\"http://www.amt.in\" ,\"si
ze\": 100,\"type\": \"link\",\"sort\":4}]}}" -u USER_ACCESSKEY:USER_ACCESSSECRET
Получение этой ошибки:
{
"Status": {
"pinterest": {
"status": 404,
"info": "Not Found: "
}
},
"URIs": [
]
}
PHP ТАМОЖЕННЫЙ КОД
//its working fine
$connection = $user->add_connection('FB', "facebook", $request->access_token);
//its working fine
$tokens = $oauth_token . ':' . $oauth_token_secret;
$connection = $user->add_connection('TW', "twitter", $tokens);
// not working
$connection = $user->add_connection('GP', "googleplus", $request->access_token);
// not working
$connection = $user->add_connection("PT", "pinterest", $request->access_token);
$options = array(
"receivers" => array(
array(
"name"=> "Me" //its working fine with twitter and fb
)
),
"message"=>array(
"subject"=>"test",
"body"=> "ABC",
"image"=>"http://politibits.blogs.tuscaloosanews.com/files/2010/07/sanford_big_dummy_navy_shirt.jpg",
"link"=>array(
"uri"=> "http://google.com",
"description"=> "link desc",
"title"=>"link title"
)
)
);
//Send the message and get their uris
$uris = $connection->send_message($options);
return ['label' => $uris];
Унификация работает отлично с твиттером и facebook, но не работает с другими
, что дало мне проблему« Требуется аутентификация! » –
$ подключение = $ user-> add_connection ("pinterestBoard", "Pinterest", "[email protected]t.com/?id=785807903670958622&is_profile=false&username=learnwithpk&profile_id=785807834952023961&connection_id=pinterest&board_name=testingunification"); Используя это и получаю эту ошибку ErrorException в UEUser.php линии 73: Попытка получить свойство необъектных –
Благодаря AMT его работы теперь благодаря –