title: How to get pin image using pinterest api in php?
body: <p>I have all the boards of logged in user and using pinterest api i am able to fetch the pins from given board but when it returns the json there is no image link, the image field return as null. So how to get image with oin content. Here is json retrieved.</p>
  
  <pre><code>Array ( [data] =&gt; Array ( [0] =&gt; Array ( [id] =&gt; 400327854358866609 [link] =&gt; https://www.pinterest.com/r/pin/400327854358866609/4837342446222323658/8737cad9ec4b46439289fbd4f22353f02255549d33a8999691d82b8642f42625 [url] =&gt; https://www.pinterest.com/pin/400327854358866609/ [creator] =&gt; [board] =&gt; [created_at] =&gt; [note] =&gt; Hello this is simple test [color] =&gt; [counts] =&gt; [media] =&gt; [attribution] =&gt; [image] =&gt; [metadata] =&gt; [original_link] =&gt; ) [1] =&gt; Array ( [id] =&gt; 400327854358814014 [link] =&gt; https://www.pinterest.com/r/pin/400327854358814014/4837342446222323658/3f1103b8d1c97de21f913293ee6062f4122313c931b054764167e96745f64465 [url] =&gt; https://www.pinterest.com/pin/400327854358814014/ [creator] =&gt; [board] =&gt; [created_at] =&gt; [note] =&gt; 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] =&gt; [counts] =&gt; [media] =&gt; [attribution] =&gt; [image] =&gt; [metadata] =&gt; [original_link] =&gt; ) ) [page] =&gt; )  
  </code></pre>
  
  <p>In above json image or media key has no values.</p>