Quick help with Jsonp please?

Avatar image for kevinvk
KevinVK

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By KevinVK

I'm trying to make an Api call in Angular, but I'm having trouble with the Callback...

return this.jsonp.request('http://www.giantbomb.com/api/games?api_key=KEY&format=jsonp&json_callback= ??? ').map(response => response.json());

What do i write for the callback to work?

Avatar image for physicalscience
physicalscience

334

Forum Posts

188

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Try stackoverflow bud. This really isn't the place for this.

Avatar image for kevinvk
KevinVK

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Yea sorry I'm still learning a lot.

For Angular 2 - 4 its just:

return this.jsonp.request('http://www.giantbomb.com/api/games?api_key=KEY&format=jsonp&json_callback=JSONP_CALLBACK ').map(response => response.json());