JavaScript is required to use Bungie.net

#api

originally posted in:BungieNetPlatform
11/13/2015 5:53:58 PM
2

What is the proper way to query the manifest?

In order to learn the API I'm working with a little application that is showing the currently equipped gear on all characters on an account using the /{membershipType}/Account/{destinyMembershipId}/Items service. This returns a json object with all equipped gear that I deserialize into a dynamic object in C#. That works great, but all of the items are returned as Item Hashes. So what I'm currently doing is using a foreach loop to iterate over each item and calling /Manifest/IntentoryItem/{ID} using each hash, which returns the name and everything else I want to know about that item. This also works, but it is needless to say very slow and I'm certain it is bad practice because widespread use of this technique would be quite taxing on the API. In short, this can't possibly be the right way to do it. So what do you guys do? I have downloaded the manifest file and I can access it with a little Sqlite browser I downloaded. Should I upload the latest manifest file to my site directory and call it to get the item from there through ODBC? That would be faster and would eliminate a bunch of API calls, but then I have to somehow ensure I always have the latest manifest. Any guidance would be appreciated.

Posting in language:

 

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

View Entire Topic
  • Well, there are many ways of doing this, what i'm doing in my app, is that i have some code that reads the manifest, process the items data, and creates a zip file containing the data i care about the items, and, from my app i just download that file and save it to a data base, and read it from there, and the app, checks once a day to see if there's an updated version of the data. I have a text file with the version number and the zip file with the json object inside, is about 100kb and has all the guns, armor, shaders, embles, consumables, and materials, no quest or other things like that. version file https://www.dropbox.com/s/8b9mh6sds2h8hyu/version?dl=1 data file https://www.dropbox.com/s/5a03nudwesevhwl/v1_destiny_definitions.zip?dl=1 Feel free to use them if you see them fit to your use case, i update the file in the urls every time there's a change in the manifest

    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