javascript - Pinterest API UncaughtReference Exception -


can explain how correctly access , parse users pinterest boards? attempting use pinterest api list of pins on users board keep getting uncaughtreference error on commented line below.

<script>     window.pasyncinit = function() {         pdk.init({             appid: "xxxxxxx",             cookie: true         });     };      (function(d, s, id){         var js, pjs = d.getelementsbytagname(s)[0];         if (d.getelementbyid(id)) {return;}         js = d.createelement(s); js.id = id;         js.src = "//assets.pinterest.com/sdk/sdk.js";         pjs.parentnode.insertbefore(js, pjs);     }(document, 'script', 'pinterest-jssdk'));  var pins = []; var board_id='yyyyy'; pdk.request('/boards/'+board_id+'/pins/', function (response) {// error here   if (!response || response.error) {     alert('error occurred');   } else {     pins = pins.concat(response.data);     if (response.hasnext) {       response.next();     }   } });  document.write(pins); </script> 


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -