dirkgroenen/pinterest-api-php

request empty in create pin

mtnyvz16 opened this issue · 3 comments

$pinInfo = $pinterest->pins->create(array(
	"board"       => $pinterest_board_id,
	"image"       => $data_url,
	"note"        => $pinterest_note,
	"link"        => $post_link
));

$pinInfo = json_decode($pinInfo, true);
print_r($pinInfo);

pinterest post is successful but id is empty.

output:

Array
(
    [id] => 
    [link] => 
    [url] => 
    [creator] => 
    [board] => 
    [created_at] => 
    [note] => 
    [color] => 
    [counts] => 
    [media] => 
    [attribution] => 
    [image] => 
    [metadata] => 
    [original_link] => 
)

Seems to be related to #112

@dirkgroenen I use the version 0.2.13 you updated on January 27.
Started to do the problem on February 26.
Please check your application.
Thanks.

json:
{"id":null,"link":null,"url":null,"creator":null,"board":null,"created_at":null,"note":null,"color":null,"counts":null,"media":null,"attribution":null,"image":null,"metadata":null,"original_link":null}