diablo3api package¶
Submodules¶
diablo3api.client module¶
diablo3api.resources module¶
-
class
diablo3api.resources.Artisan(api_host, session)[source]¶ Bases:
diablo3api.resources.ResourceA Resource for the Diablo Artisan. See http://blizzard.github.io/d3-api-docs/#artisan-information/artisan-information-example Currently only “blacksmith”, “jeweler”, and “mystic” are valid Artisans.
-
build_url(artisan, resource='data/artisan')[source]¶ Builds a URL of the form: /api/d3/data/artisan/<artisan-type>
-
resource= 'data/artisan'¶
-
-
class
diablo3api.resources.Follower(api_host, session)[source]¶ Bases:
diablo3api.resources.ResourceA Resource for a Diablo Follower. See http://blizzard.github.io/d3-api-docs/#follower-information/follower-information-example Currently only “templar”, “scoundrel”, and “enchantress” are valid Followers
-
build_url(follower, resource='data/follower')[source]¶ Builds a URL of the form: /api/d3/data/follower/<follower-type> :param follower: :param resource: :return:
-
resource= 'data/follower'¶
-
-
class
diablo3api.resources.Hero(api_host, session)[source]¶ Bases:
diablo3api.resources.ResourceA Resource for the Diablo Hero Profile. A Hero Profile is within a Career profile which is why this class is instantiated under the Profile class. See http://blizzard.github.io/d3-api-docs/#hero-profile/hero-profile-example
-
build_url(battletag, hero)[source]¶ Builds a URL of the form: /api/d3/profile/<battletag>/hero/<heroId> :param args: There should be 2 positional Arguments for Battletag and Hero ID. :return:
-
parent_resource= 'profile'¶
-
resource= 'hero'¶
-
-
class
diablo3api.resources.Item(api_host, session)[source]¶ Bases:
diablo3api.resources.ResourceA Resource for a Diablo Item. See http://blizzard.github.io/d3-api-docs/#item-information/item-information-example
-
build_url(item, resource='data/item')[source]¶ Builds a URL of the form: /api/d3/data/item/<itemId> :param item: :param resource: :return:
-
resource= 'data/item'¶
-
-
class
diablo3api.resources.Profile(*args, **kwargs)[source]¶ Bases:
diablo3api.resources.ResourceA Resource for the Diablo Career Profile. See http://blizzard.github.io/d3-api-docs/#career-profile/career-profile-example
-
build_url(battletag, resource='profile')[source]¶ Builds a URL of the form: /api/d3/profile/<battletag>/ :param battletag: :param resource: :return:
-
resource= 'profile'¶
-
-
class
diablo3api.resources.Resource(api_host, session)[source]¶ Bases:
objectBase Class for a Diablo 3 Resource
-
build_url(resource)[source]¶ Builds the URL using the base API host and the resource :param resource: :return:
-