Quantcast

[Moo] Request.JSONP({})

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Moo] Request.JSONP({})

Adrian Statescu
          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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Moo] Request.JSONP({})

Arian Stolwijk-2
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"})


On Wed, Sep 16, 2015 at 3:13 PM Adrian Statescu <[hidden email]> 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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Moo] Request.JSONP({})

Ryan Mitchell

On 16 Sep 2015, at 14:17, arian <[hidden email]> wrote:

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"})


On Wed, Sep 16, 2015 at 3:13 PM Adrian Statescu <[hidden email]> 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 [hidden email][hidden email].
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 [hidden email].
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...