JavaScript is required to use Bungie.net

Forums

originally posted in:BungieNetPlatform
5/11/2015 11:58:18 AM
2

New to API's, need a little help

Hi guys, I'm relatively new to playing with APIs, and I'm trying to pull data from this endpoint, containing my own membership ID: http://www.bungie.net/Platform/Destiny/TigerXbox/Account/4611686018430866326/. Would anybody know how to use Python to pull the integer listed for 'progressionHash'? I've tried a number of different things, but I can't seem to nail it down. I figured it would be something like this: data['Response']['data']['characters']['levelProgression'][5]['currentProgress'] But that just yields an error. Would anyone with a little more experience be able to tell me what exactly I'm doing wrong? I'd love to get the syntax down for this.
English

Posting in language:

 

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

  • If you still cant find the problem [spoiler] http://i57.tinypic.com/5yvxc9.png The 'characters' holds an index for each character, you try to skip this part which will return the error of a undefined data part [/spoiler]

    Posting in language:

     

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

    2 Replies
    • I've noticed in PHP that the some data is a FLOW variable, dont know if thats the case in Python as wel. If you cant acces "data['Response']['data']['characters']['levelProgression'][5]['currentProgress']" try to found out where it is going wrong. Check each step from start to finish. data - ? data['Response'] - ? data['Response']['data'] - ? eventually you'll see whats going wrong.

      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