如何在php中使用pinterest api获取pin图像?

如何在php中使用pinterest api获取pin图像?,php,api,pinterest,Php,Api,Pinterest,我拥有登录用户的所有板,使用pinterest api,我能够从给定板获取管脚,但当它返回json时,没有图像链接,图像字段返回为null。因此,如何获得与oin内容的图像。下面是检索到的json Array ( [data] => Array ( [0] => Array ( [id] => 400327854358866609 [link] => https://www.pinterest.com/r/pin/400327854358866609/4837342446

我拥有登录用户的所有板,使用pinterest api,我能够从给定板获取管脚,但当它返回json时,没有图像链接,图像字段返回为null。因此,如何获得与oin内容的图像。下面是检索到的json

Array ( [data] => Array ( [0] => Array ( [id] => 400327854358866609 [link] => https://www.pinterest.com/r/pin/400327854358866609/4837342446222323658/8737cad9ec4b46439289fbd4f22353f02255549d33a8999691d82b8642f42625 [url] => https://www.pinterest.com/pin/400327854358866609/ [creator] => [board] => [created_at] => [note] => Hello this is simple test [color] => [counts] => [media] => [attribution] => [image] => [metadata] => [original_link] => ) [1] => Array ( [id] => 400327854358814014 [link] => https://www.pinterest.com/r/pin/400327854358814014/4837342446222323658/3f1103b8d1c97de21f913293ee6062f4122313c931b054764167e96745f64465 [url] => https://www.pinterest.com/pin/400327854358814014/ [creator] => [board] => [created_at] => [note] => 55 Awesome Men’s Tattoos | InkDoneRight We’ve collected 55 Awesome Different Mens Tattoo Designs to inspire you! We also have the meaning and symbolism behind the common men’s tattoo designs... [color] => [counts] => [media] => [attribution] => [image] => [metadata] => [original_link] => ) ) [page] => )  
在上面的json中,图像或媒体键没有值。

如果使用“API资源管理器”,并添加“图像”字段,其中一个输出是原始图像的URL

或者使用JS SDK,例如:

请求(thisRequest,{fields:'id,note,link,url,image'},thisCmd, 函数(PDKdata){}

请参见我的示例:

如果使用“API资源管理器”,并添加“图像”字段,则输出之一是原始图像的URL

或者使用JS SDK,例如:

请求(thisRequest,{fields:'id,note,link,url,image'},thisCmd, 函数(PDKdata){}

请参见我的示例:


示例的链接已断开。您可以修复链接吗?看起来帖子已被删除。JC示例的链接已断开。您可以修复链接吗?看起来帖子已被删除。JC