originally posted in:BungieNetPlatform
Hi Steve -- What exactly are your goals with the API? I would suggest joining our [url=https://www.bungie.net/en/Clan/Forum/39966]BungieNetPlatform group[/url]. There you will find very knowledgeable folks who'd be happy to help you get started.
English
-
Mainly I'm trying to just pull any data I can. Once I have an understanding of how to pull data, and exactly what data i can pull, then I will come up with an idea for a website. I see a lot of people using Node.js and C# to pull that data, but Is it possible to just pull it using php or javascript? Thanks, Steve C
-
I was able to get started using php, found this really cool php library, uses composer and looks like it parses the json files it gets back from the public enpoints. Script: https://github.com/aFreshMelon/destiny-php What I have made so far: http://costellocoding.com/test/destiny-api/ Thanks all for your help, Steve C
-
Javascript alone wont be enough. Bungie does not support [url=https://www.bungie.net/en/Clan/Post/39966/85087279/0/0]Cross Origin Requests[/url]. We are required to use a CURL and some magic :)
-
CORS actually depends on what you're building. You can still use JavaScript API's if you're building: - Browser plugins - Mobile applications (think phonegap, react-native, titanium) - Desktop Applications (using adobe air, atom shell etc) - Server apps using Node.js
-
Edited by cherrywave: 5/7/2015 8:25:52 AMHey you, I wanted to build a mobile app (doesn't mind if it's just for android) I am still looking for an example how to do the authentication thing with an Android WebView. Or should I give Phonegap a try? Edit: OK I looked at Phonegap but I would rather like to use my known IDEs. Or is anyone here willing to introduce me completely in this Phonegap, Adobe Cordova thing?
-
To elaborate on Help0's response: Yes! You can definitely use javascript. Any language that can issue an HTTP GET request and handle the response can be interfaced with the Bungie.net API. Documentation can be found here: https://www.bungie.net/en/Clan/Post/39966/85087279/0/0
-
Great questions. I [i]think [/i]it's possible with Javascript, but I would suggest posting in that group, as I'm not a programmer and they'll know best.