Request.JSONP({})

27 views
Skip to first unread message

Adrian Statescu

unread,
Sep 16, 2015, 9:13:00 AM9/16/15
to MooTools Users
          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

arian

unread,
Sep 16, 2015, 9:17:52 AM9/16/15
to mootool...@googlegroups.com
It seems the instragram API doesn't work this way for JSONP.


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


--

---
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Mitchell

unread,
Sep 16, 2015, 9:20:53 AM9/16/15
to mootool...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages