originally posted in:BungieNetPlatform
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
-
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.
-
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.
-
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?
-
[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]
-
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.
-
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.