JavaScript is required to use Bungie.net

#Bungie

postato inizialmente in:BungieNetPlatform
1/15/2016 10:39:59 AM
3

I am trying to get into App Development. Are there any great (visual) tutorials for using an API (with an API KEY)?

I have an editText for the username and a switcher to select the platform. XBL being 1 and PSN being 2. I can easily make the URL but in chrome it asks for an API KEY (which I have). But I do not know what to do with this key. Where do I put it in the URL etc... I want a tutorial to explain how to make quick interactions with the Bungie API to get specific experience levels for factions.

Lingua:

 

Fate i bravi. Prima di postare date un'occhiata al nostro codice di condotta. Annulla Modifica Crea squadra Invia

  • I've found in testing my API calls I don't have to specify a 1 or 2 for the platform, I can pass the 'PSN/Gamertag' name and 'All' and I'm returned the correct info. In order to actually interact with the API, you need to pass 'X-API-Key' = to the value of your API key.

    Lingua:

     

    Fate i bravi. Prima di postare date un'occhiata al nostro codice di condotta. Annulla Modifica Crea squadra Invia

  • Send me a message and i can give you access to my repo, in there you will find everything you need to start coding, including a WebView that handles the login for you. I'm Assuming this is Android, right? if not, i can still give you access but don't know how much it would help.

    Lingua:

     

    Fate i bravi. Prima di postare date un'occhiata al nostro codice di condotta. Annulla Modifica Crea squadra Invia

    2 Risposte
    • For example I would setup methods so I could easily call them: String mId = getMembershipIdByUsername(username, 1);

      Lingua:

       

      Fate i bravi. Prima di postare date un'occhiata al nostro codice di condotta. Annulla Modifica Crea squadra Invia

    Non ti è permesso visualizzare questo contenuto.
    ;
    preload icon
    preload icon
    preload icon