The all-in-one toolbelt for your next Ankama related project.
- Javascript
npm i dofusdude-js --save
- Typescript
npm i dofusdude-ts --save
- Go
go get -u github.com/dofusdude/dodugo
- Python
pip install dofusdude
- Java Maven with GitHub packages setup
Everything, including this site, is generated out of the Docs Repo. Consider it the Single Source of Truth. If there is a problem with the SDKs, create an issue there.
Your favorite language is missing? Please let me know!
-
🥷 Seamless Auto-Update load data in the background when a new Dofus version is released and serving it within 10 minutes with atomic data source switching. No downtime and no effects for the user, just always up-to-date.
-
⚡ Blazingly Fast all data in-memory, aggressive caching over short time spans, HTTP/2 multiplexing, written in Go, optimized for low latency, hosted on bare metal in 🇩🇪.
-
📨 Almanax Discord Integration Use the endpoints as a dev or the official Web Client as a user.
-
🩸 Dofus 3 Beta from stable to bleeding edge by replacing /dofus3 with /dofus3beta.
-
🗣️ Multilingual supporting en, fr, es, pt, de.
-
🧠 Search by Relevance allowing typos in name and description, handled by language specific text analysis and indexing.
-
🕵️ Official Sources generated from actual data from the game.
... and much more on the Roadmap on my Discord.
This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0-rc.8
- Package version: 1.0.0
- Generator version: 7.11.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit https://discord.gg/3EtHskZD8h
Install the following dependencies:
go get github.com/stretchr/testify/assert
go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
import dodugo "github.com/dofusdude/dodugo"
To use a proxy, set the environment variable HTTP_PROXY
:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")
Default configuration comes with Servers
field that contains server objects as defined in the OpenAPI specification.
For using other server than the one defined on index 0 set context value dodugo.ContextServerIndex
of type int
.
ctx := context.WithValue(context.Background(), dodugo.ContextServerIndex, 1)
Templated server URL is formatted using default variables from configuration or from context value dodugo.ContextServerVariables
of type map[string]string
.
ctx := context.WithValue(context.Background(), dodugo.ContextServerVariables, map[string]string{
"basePath": "v2",
})
Note, enum values are always validated and all unused variables are silently ignored.
Each operation can use different server URL defined using OperationServers
map in the Configuration
.
An operation is uniquely identified by "{classname}Service.{nickname}"
string.
Similar rules for overriding default operation server index and variables applies by using dodugo.ContextOperationServerIndices
and dodugo.ContextOperationServerVariables
context maps.
ctx := context.WithValue(context.Background(), dodugo.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), dodugo.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
})
All URIs are relative to https://api.dofusdu.de
Class | Method | HTTP request | Description |
---|---|---|---|
AlmanaxAPI | GetAlmanaxDate | Get /dofus3/v1/{language}/almanax/{date} | Single Almanax Date |
AlmanaxAPI | GetAlmanaxRange | Get /dofus3/v1/{language}/almanax | Almanax Range |
ConsumablesAPI | GetAllItemsConsumablesList | Get /{game}/v1/{language}/items/consumables/all | List All Consumables |
ConsumablesAPI | GetItemsConsumablesList | Get /{game}/v1/{language}/items/consumables | List Consumables |
ConsumablesAPI | GetItemsConsumablesSearch | Get /{game}/v1/{language}/items/consumables/search | Search Consumables |
ConsumablesAPI | GetItemsConsumablesSingle | Get /{game}/v1/{language}/items/consumables/{ankama_id} | Single Consumables |
CosmeticsAPI | GetAllCosmeticsList | Get /{game}/v1/{language}/items/cosmetics/all | List All Cosmetics |
CosmeticsAPI | GetCosmeticsList | Get /{game}/v1/{language}/items/cosmetics | List Cosmetics |
CosmeticsAPI | GetCosmeticsSearch | Get /{game}/v1/{language}/items/cosmetics/search | Search Cosmetics |
CosmeticsAPI | GetCosmeticsSingle | Get /{game}/v1/{language}/items/cosmetics/{ankama_id} | Single Cosmetics |
EquipmentAPI | GetAllItemsEquipmentList | Get /{game}/v1/{language}/items/equipment/all | List All Equipment |
EquipmentAPI | GetItemsEquipmentList | Get /{game}/v1/{language}/items/equipment | List Equipment |
EquipmentAPI | GetItemsEquipmentSearch | Get /{game}/v1/{language}/items/equipment/search | Search Equipment |
EquipmentAPI | GetItemsEquipmentSingle | Get /{game}/v1/{language}/items/equipment/{ankama_id} | Single Equipment |
GameAPI | GetGameSearch | Get /{game}/v1/{language}/search | Game Search |
GameAPI | GetItemsAllSearch | Get /{game}/v1/{language}/items/search | Search All Items |
MetaAPI | GetGameSearchTypes | Get /{game}/v1/meta/search/types | Available Game Search Types |
MetaAPI | GetItemTypes | Get /{game}/v1/meta/items/types | Available Item Types |
MetaAPI | GetMetaAlmanaxBonuses | Get /dofus3/v1/meta/{language}/almanax/bonuses | Available Almanax Bonuses |
MetaAPI | GetMetaAlmanaxBonusesSearch | Get /dofus3/v1/meta/{language}/almanax/bonuses/search | Search Available Almanax Bonuses |
MetaAPI | GetMetaElements | Get /{game}/v1/meta/elements | Effects and Condition Elements |
MetaAPI | GetMetaVersion | Get /{game}/v1/meta/version | Game Version |
MountsAPI | GetAllMountsList | Get /{game}/v1/{language}/mounts/all | List All Mounts |
MountsAPI | GetMountsList | Get /{game}/v1/{language}/mounts | List Mounts |
MountsAPI | GetMountsSearch | Get /{game}/v1/{language}/mounts/search | Search Mounts |
MountsAPI | GetMountsSingle | Get /{game}/v1/{language}/mounts/{ankama_id} | Single Mounts |
QuestItemsAPI | GetAllItemsQuestList | Get /{game}/v1/{language}/items/quest/all | List All Quest Items |
QuestItemsAPI | GetItemQuestSingle | Get /{game}/v1/{language}/items/quest/{ankama_id} | Single Quest Items |
QuestItemsAPI | GetItemsQuestList | Get /{game}/v1/{language}/items/quest | List Quest Items |
QuestItemsAPI | GetItemsQuestSearch | Get /{game}/v1/{language}/items/quest/search | Search Quest Items |
ResourcesAPI | GetAllItemsResourcesList | Get /{game}/v1/{language}/items/resources/all | List All Resources |
ResourcesAPI | GetItemsResourceSearch | Get /{game}/v1/{language}/items/resources/search | Search Resources |
ResourcesAPI | GetItemsResourcesList | Get /{game}/v1/{language}/items/resources | List Resources |
ResourcesAPI | GetItemsResourcesSingle | Get /{game}/v1/{language}/items/resources/{ankama_id} | Single Resources |
SetsAPI | GetAllSetsList | Get /{game}/v1/{language}/sets/all | List All Sets |
SetsAPI | GetSetsList | Get /{game}/v1/{language}/sets | List Sets |
SetsAPI | GetSetsSearch | Get /{game}/v1/{language}/sets/search | Search Sets |
SetsAPI | GetSetsSingle | Get /{game}/v1/{language}/sets/{ankama_id} | Single Sets |
WebhooksAPI | DeleteWebhooksAlmanaxId | Delete /webhooks/almanax/{id} | Unregister Almanax Hook |
WebhooksAPI | DeleteWebhooksRssId | Delete /webhooks/rss/{id} | Unregister RSS Hook |
WebhooksAPI | DeleteWebhooksTwitterId | Delete /webhooks/twitter/{id} | Unregister Twitter Hook |
WebhooksAPI | GetMetaWebhooksAlmanax | Get /meta/webhooks/almanax | Get Almanax Hook Metainfo |
WebhooksAPI | GetMetaWebhooksRss | Get /meta/webhooks/rss | Get RSS Hook Metainfo |
WebhooksAPI | GetMetaWebhooksTwitter | Get /meta/webhooks/twitter | Get Twitter Hook Metainfo |
WebhooksAPI | GetWebhooksAlmanaxId | Get /webhooks/almanax/{id} | Get Almanax Hook |
WebhooksAPI | GetWebhooksRssId | Get /webhooks/rss/{id} | Get RSS Hook |
WebhooksAPI | GetWebhooksTwitterId | Get /webhooks/twitter/{id} | Get Twitter Hook |
WebhooksAPI | PostWebhooksAlmanax | Post /webhooks/almanax | Register Almanax Hook |
WebhooksAPI | PostWebhooksRss | Post /webhooks/rss | Register RSS Hook |
WebhooksAPI | PostWebhooksTwitter | Post /webhooks/twitter | Register Twitter Hook |
WebhooksAPI | PutWebhooksAlmanaxId | Put /webhooks/almanax/{id} | Update Almanax Hook |
WebhooksAPI | PutWebhooksRssId | Put /webhooks/rss/{id} | Update RSS Hook |
WebhooksAPI | PutWebhooksTwitterId | Put /webhooks/twitter/{id} | Update Twitter Hook |
- Almanax
- AlmanaxBonus
- AlmanaxTribute
- AlmanaxTributeItem
- AlmanaxWebhook
- AlmanaxWebhookDailySettings
- Condition
- ConditionLeaf
- ConditionNode
- ConditionRelation
- CreateAlmanaxWebhook
- CreateAlmanaxWebhookDailySettings
- CreateAlmanaxWebhookMentionsValueInner
- CreateRSSWebhook
- CreateTwitterWebhook
- Effect
- EffectType
- Equipment
- EquipmentSet
- Error
- GameSearch
- GameSearchItem
- GameSearchType
- GetMetaAlmanaxBonuses200ResponseInner
- GetMetaWebhooksTwitter200Response
- Images
- ItemSubtype
- ListEquipmentSet
- ListEquipmentSets
- ListItem
- ListItemGeneral
- ListItems
- ListMounts
- Mount
- MountFamily
- PagedLinks
- PutAlmanaxWebhook
- PutRSSWebhook
- PutTwitterWebhook
- Range
- Recipe
- Resource
- RssWebhook
- TranslatedId
- TwitterWebhook
- Version
- Weapon
Endpoints do not require authorization.
Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:
PtrBool
PtrInt
PtrInt32
PtrInt64
PtrFloat
PtrFloat32
PtrFloat64
PtrString
PtrTime