How do I connect to Battle.net API with AJAX?

Get help using Construct 2

Post » Sat Dec 13, 2014 7:33 am

Hi. Did anyone of you use the Battle.net API, yet? Its from Blizzard to get game related info for WoW, Diablo or Starcraft.
I tried to get some data via AJAX and I tried Post to URL and Request URL but it always returns an error (with and without JSONP).
But it seems other developers could use AJAX to get data from the api, why does this not work with Construct 2? :(

Here is a topic about it on Battle.net Developer forums: http://us.battle.net/en/forum/topic/14728143047

Examples:
Image

PS: I tried another way and it returns data if I use the Browser action to start a download to get a .json/.txt file (will be opened in browser as textfile on my iPhone) but I need to save the file without user interaction to read the data so this does not seem to be a possible solution.
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 756
Reputation: 9,591

Return to How do I....?

Who is online

Users browsing this forum: humanescape, warmty and 7 guests