JavaScript is required to use Bungie.net

Forums

originally posted in:BungieNetPlatform
Edited by dazarobbo: 6/28/2015 5:52:12 AM
6
When you make a request to the platform you need to include your API key as a HTTP header (see: http://bungienetplatform.wikia.com/wiki/API_Details ). There are also some examples [url=http://bungienetplatform.wikia.com/wiki/Getting_Started]here[/url] in various languages.
English

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • I was able to get the code into my program but I don't know how to see if it works in javascript. How can I check the implementation? I also have experience with parsing in java but I would need the JSON first. I don't know how to get that either. Sorry if I am fairly clueless on this but I want to learn this stuff.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • It's probably not going to work in JavaScript because you'll be running it in a different domain to bungie.net (unless you write it as a browser extension). Your best bet would be to use an environment which doesn't have those restrictions like Java since you're familiar with it. As far as checking to see if it works, [url=http://www.bungie.net/platform/destiny/advisors/]this endpoint[/url] is one of the simplest which you can also check using your browser.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • The link that you sent earlier didn't have any example to make a request in java to access the api. Is there a form somewhere that I can use?

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • [url=http://www.mkyong.com/java/how-to-send-http-request-getpost-in-java/]Here is a really good quick tutorial on how to issue basic HTTP GET requests using Java.[/url]

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Check out the code in [url=https://www.bungie.net/it/Clan/Post/39966/132682213/0/0]this post[/url], it's in java, may help you.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • There's no form, but if you know how to initiate a HTTP request in Java you should be able to translate the code from the other examples or go with the wiki information on each endpoint.

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon