JavaScript is required to use Bungie.net

#BungieNetPlatform

postato inizialmente in:BungieNetPlatform
1/9/2016 7:00:36 PM
3

New service wrapper in C# and on NuGet

Others have attempted this, but I believe my approach is philosophically different. I wanted this to be as easy to use as possible. So, grab your API key, create a project (WPF, Windows Store, Windows Phone, whatever) then run Add-Package bungie from the NuGet Package Console. Everything you'll need to explicitly reference is in the Bungie namespace: [quote]using Bungie;[/quote] Create a service with your API key:[quote]var service = new DestinyService(apiKey);[/quote] Then go to town:[quote]var membershipId = await service.GetMembershipIdByDisplayName(MembershipType.Xbox, "kodefuguru");[/quote] Methods are defined in IDestinyService, so dependency injection or decoration is no problem. The pattern of using an asynchronous service gateway is established, but method names/signatures and models are subject to change as I continue to map the platform. All source code is released under the MIT License and available at [url]http://github.com/kodefuguru/bungie[/url].

Lingua:

 

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

Visualizza l'intera discussione
  • Nice, i did the same for Java, but, then when i tried to use it on my other own project i had issues, because i did it so easy to use that i was pretty much deciding the models to use in order that you don't have to worry about that, but, if you wanted to use certain DB frameworks or things like that require your models to follow some rules and then you end up having 2 models and things like that, so i just end up not releasing it :(

    Lingua:

     

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

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