It seems the instragram API doesn't work this way for JSONP.

As you can see, the URL https://api.instagram.com/v1/media/popular?access_token=&client_id=95e09e6147344028bfb8972ce0f3a0b0&count=10&jsoncallback=Request.JSONP.request_map.request_0 contains only JSON.

If it would support JSONP, the result would be: Request.JSONP.request_map.request_0({"some": "JSON here"})


On Wed, Sep 16, 2015 at 3:13 PM Adrian Statescu <mergeso...@gmail.com <mailto:mergeso...@gmail.com>> wrote:

              var myJSONP = new Request.JSONP({

                           url:
   
'https://api.instagram.com/v1/media/popular?access_token=&client_id=95e09e6147344028bfb8972ce0f3a0b0&count=10',

                           callbackKey: 'jsoncallback',

                           onRequest: function( url ){

                                      console.log( url )
                           },

                           onSuccess: function( response ){

                                      console.log( response )
                           }
                           }).send();

   I've got the following message in console.log "SyntaxError: missing
   ; before statement". something is wrong in this class.Any idea? Thanks
--
   ---
   You received this message because you are subscribed to the Google
   Groups "MooTools Users" group.
   To unsubscribe from this group and stop receiving emails from it,
   send an email to mootools-users+unsubscr...@googlegroups.com
   <mailto:mootools-users+unsubscr...@googlegroups.com>.
   For more options, visit https://groups.google.com/d/optout.

--

--- You received this message because you are subscribed to the Google Groups "MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mootools-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to