This project is read-only.

All examples are an extension of this example:

using System;
using D3APIdotNet;

class Program
{
    static void Main(string[] args)
    {
        D3API api = new D3API(HostName.en_US);
        //Other examples proceed from here
    }
}

Career Profile:

public dynamic getCareerProfile(string battletag)

  Example: 

var careerProfile =  api.getCareerProfile("Battletag#0000");
string heroName = careerProfile.heroes[0].name; 

  Members of a Career Profile can be found here.

Hero Profile:

public dynamic getHeroProfile(string battletag, int heroID)

  Example:

var heroProfile =  api.getHeroProfile("Battletag#0000", 1);
double heroDamage = heroProfile.stats.damage;

  Members of a Hero Profile can be found here.

Item Information:

public dynamic getItemInformation(string itemData)

  Example: 

var itemInformation = api.getItemInformation("COGHsoAIEgcIBBXIGEoRHYQRdRUdnWyzFB2qXu51MA04kwNAAFAKYJMD");
string iconSlug = itemInformation.icon;

  Members of Item Information can be found here.

Follower Information:

public dynamic getArtisanInformation(Artisan artisan)

  Example: 

var followerInformation = api.getFollowerInformation(Follower.Scoundrel);
string slug = followerInformation.skills.active[0].slug;

  Members of Follower Information can be found here.

Artisan Information:

public dynamic getFollowerInformation(Follower follower)

  Example: 

var artisanInformation = api.getArtisanInformation(Artisan.Blacksmith);
int recipeCost = artisanInformation.training.tiers[0].levels[0].trainedRecipes[0].cost;

  Members of Artisan Information can be found here.

Last edited Jul 2, 2012 at 1:12 AM by Promedius, version 4

Comments

No comments yet.