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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -