JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
11/24/2015 8:18:34 PM
1

Wonderful resources but I need a nudge in the right direction

I'm really impressed at how much Bungie has provided with the API and how much has been pulled together here in this group. I want to easily keep up with my Clan member roster and their play time (to make finding inactive players a breeze) and I'm wanting to use the API for this but I get lost at that "make an HTTP GET request..." part. I have a good grasp on programming fundamentals but APIs are completely new to me. What I've gathered so far is that installing Apache web server and PHP engine is the best way to start and the GET requests are placed in *.php files (typed in Notepad) and ran through a browser. Am I on the right track? Thanks in advance, guys!

Posting in language:

 

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

  • Edited by VThornheart: 11/24/2015 10:27:37 PM
    Hi, and welcome to the API group! So what you'll want to do varies on what you're looking to make. It's going to be daunting at first, but I will try and point you to some resources where you can learn more. [b]If you're making a website[/b], you're going to want the server side of your website to be what is making calls to our API: if you try to do it client side, you'll get errors because most browsers prevent you from making AJAX requests from one domain to another. This is likely why you're seeing mention of PHP: it's a server-side scripting solution for websites. Getting set up and up to speed on what PHP is would be unfortunately beyond the scope of this particular group, there is an ocean of great PHP resources out there for you to study up on! https://www.codecademy.com/learn/php <-- this should teach you critical concepts (what it means for something to be server-side, where code is executed) as well as PHP's scripting language itself. Make sure to start here if you've never worked with server-side web programming before, or PHP specifically. I remember long ago, I was a young developer who had never been exposed to server side web development, and it wasn't until I was pointed to a site that really taught the conceptual flow of what's really happening that I understood just how it differs from desktop or client-side web development. It's super important to understand for any of the rest of this to make sense, so if you're at that point be sure to give this a shot! [b]If you're making a mobile or desktop app,[/b] you *could* make requests directly to Bungie.net from it, but you'll find that it may serve your needs better to still go ahead and make a website that serves as a "web service proxy". (EDIT: See below for more... I was going to link to a site with more details but it wasn't really useful). [b]You will also *have* to make a web service proxy if you want to make client-side calls to get Bungie data[/b] - again, because of the limitation I mentioned above about making requests between two different domains. Now, when you're reading that conceptually, keep in mind that all a web service proxy needs to be is server-side code that accepts inputs from a user (in the form of a GET or a POST generally), uses that data to *itself* make a call to Bungie.Net, and then either returns the response from Bungie.Net as-is or transforms that result into something more usable. Now, once you get these essentials down, there will be a great deal more to cover - but they may be areas you've touched before, such as dealing with databases (you've probably seen mention of the "mobile manifest" here. Those are SQLite databases that contain static information about the various entities in the Destiny game). Start with that, and once you start feeling comfortable with PHP start using its libraries to make calls to Bungie.net: once you start doing that, you'll be more in the realm of what this forum was set up to answer questions about, and you'll find that there's a generous number of people here ready to help! Good luck, and be sure to report back!

    Posting in language:

     

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

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