1.0.0 • Published 5 months ago

dofusdude-js v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

dofusdude-js

dofusdude - JavaScript client for dofusdude-js

Open Ankama Developer Community

The all-in-one toolbelt for your next Ankama related project.

Versions

Client SDKs

  • 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!

Main Features

  • 🥷 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 SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.12.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://discord.gg/3EtHskZD8h

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install dofusdude-js --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your dofusdude-js from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var dofusdude = require('dofusdude-js');


var api = new dofusdude.AlmanaxApi()
var language = "fr"; // {String} code
var date = new Date("Sat Jan 25 00:00:00 UTC 2025"); // {Date} yyyy-mm-dd
var opts = {
  'level': 56 // {Number} character level for the reward_xp field
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.getAlmanaxDate(language, date, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://api.dofusdu.de

ClassMethodHTTP requestDescription
dofusdude.AlmanaxApigetAlmanaxDateGET /dofus3/v1/{language}/almanax/{date}Single Almanax Date
dofusdude.AlmanaxApigetAlmanaxRangeGET /dofus3/v1/{language}/almanaxAlmanax Range
dofusdude.ConsumablesApigetAllItemsConsumablesListGET /{game}/v1/{language}/items/consumables/allList All Consumables
dofusdude.ConsumablesApigetItemsConsumablesListGET /{game}/v1/{language}/items/consumablesList Consumables
dofusdude.ConsumablesApigetItemsConsumablesSearchGET /{game}/v1/{language}/items/consumables/searchSearch Consumables
dofusdude.ConsumablesApigetItemsConsumablesSingleGET /{game}/v1/{language}/items/consumables/{ankama_id}Single Consumables
dofusdude.CosmeticsApigetAllCosmeticsListGET /{game}/v1/{language}/items/cosmetics/allList All Cosmetics
dofusdude.CosmeticsApigetCosmeticsListGET /{game}/v1/{language}/items/cosmeticsList Cosmetics
dofusdude.CosmeticsApigetCosmeticsSearchGET /{game}/v1/{language}/items/cosmetics/searchSearch Cosmetics
dofusdude.CosmeticsApigetCosmeticsSingleGET /{game}/v1/{language}/items/cosmetics/{ankama_id}Single Cosmetics
dofusdude.EquipmentApigetAllItemsEquipmentListGET /{game}/v1/{language}/items/equipment/allList All Equipment
dofusdude.EquipmentApigetItemsEquipmentListGET /{game}/v1/{language}/items/equipmentList Equipment
dofusdude.EquipmentApigetItemsEquipmentSearchGET /{game}/v1/{language}/items/equipment/searchSearch Equipment
dofusdude.EquipmentApigetItemsEquipmentSingleGET /{game}/v1/{language}/items/equipment/{ankama_id}Single Equipment
dofusdude.GameApigetGameSearchGET /{game}/v1/{language}/searchGame Search
dofusdude.GameApigetItemsAllSearchGET /{game}/v1/{language}/items/searchSearch All Items
dofusdude.MetaApigetGameSearchTypesGET /{game}/v1/meta/search/typesAvailable Game Search Types
dofusdude.MetaApigetItemTypesGET /{game}/v1/meta/items/typesAvailable Item Types
dofusdude.MetaApigetMetaAlmanaxBonusesGET /dofus3/v1/meta/{language}/almanax/bonusesAvailable Almanax Bonuses
dofusdude.MetaApigetMetaAlmanaxBonusesSearchGET /dofus3/v1/meta/{language}/almanax/bonuses/searchSearch Available Almanax Bonuses
dofusdude.MetaApigetMetaElementsGET /{game}/v1/meta/elementsEffects and Condition Elements
dofusdude.MetaApigetMetaVersionGET /{game}/v1/meta/versionGame Version
dofusdude.MountsApigetAllMountsListGET /{game}/v1/{language}/mounts/allList All Mounts
dofusdude.MountsApigetMountsListGET /{game}/v1/{language}/mountsList Mounts
dofusdude.MountsApigetMountsSearchGET /{game}/v1/{language}/mounts/searchSearch Mounts
dofusdude.MountsApigetMountsSingleGET /{game}/v1/{language}/mounts/{ankama_id}Single Mounts
dofusdude.QuestItemsApigetAllItemsQuestListGET /{game}/v1/{language}/items/quest/allList All Quest Items
dofusdude.QuestItemsApigetItemQuestSingleGET /{game}/v1/{language}/items/quest/{ankama_id}Single Quest Items
dofusdude.QuestItemsApigetItemsQuestListGET /{game}/v1/{language}/items/questList Quest Items
dofusdude.QuestItemsApigetItemsQuestSearchGET /{game}/v1/{language}/items/quest/searchSearch Quest Items
dofusdude.ResourcesApigetAllItemsResourcesListGET /{game}/v1/{language}/items/resources/allList All Resources
dofusdude.ResourcesApigetItemsResourceSearchGET /{game}/v1/{language}/items/resources/searchSearch Resources
dofusdude.ResourcesApigetItemsResourcesListGET /{game}/v1/{language}/items/resourcesList Resources
dofusdude.ResourcesApigetItemsResourcesSingleGET /{game}/v1/{language}/items/resources/{ankama_id}Single Resources
dofusdude.SetsApigetAllSetsListGET /{game}/v1/{language}/sets/allList All Sets
dofusdude.SetsApigetSetsListGET /{game}/v1/{language}/setsList Sets
dofusdude.SetsApigetSetsSearchGET /{game}/v1/{language}/sets/searchSearch Sets
dofusdude.SetsApigetSetsSingleGET /{game}/v1/{language}/sets/{ankama_id}Single Sets
dofusdude.WebhooksApideleteWebhooksAlmanaxIdDELETE /webhooks/almanax/{id}Unregister Almanax Hook
dofusdude.WebhooksApideleteWebhooksRssIdDELETE /webhooks/rss/{id}Unregister RSS Hook
dofusdude.WebhooksApideleteWebhooksTwitterIdDELETE /webhooks/twitter/{id}Unregister Twitter Hook
dofusdude.WebhooksApigetMetaWebhooksAlmanaxGET /meta/webhooks/almanaxGet Almanax Hook Metainfo
dofusdude.WebhooksApigetMetaWebhooksRssGET /meta/webhooks/rssGet RSS Hook Metainfo
dofusdude.WebhooksApigetMetaWebhooksTwitterGET /meta/webhooks/twitterGet Twitter Hook Metainfo
dofusdude.WebhooksApigetWebhooksAlmanaxIdGET /webhooks/almanax/{id}Get Almanax Hook
dofusdude.WebhooksApigetWebhooksRssIdGET /webhooks/rss/{id}Get RSS Hook
dofusdude.WebhooksApigetWebhooksTwitterIdGET /webhooks/twitter/{id}Get Twitter Hook
dofusdude.WebhooksApipostWebhooksAlmanaxPOST /webhooks/almanaxRegister Almanax Hook
dofusdude.WebhooksApipostWebhooksRssPOST /webhooks/rssRegister RSS Hook
dofusdude.WebhooksApipostWebhooksTwitterPOST /webhooks/twitterRegister Twitter Hook
dofusdude.WebhooksApiputWebhooksAlmanaxIdPUT /webhooks/almanax/{id}Update Almanax Hook
dofusdude.WebhooksApiputWebhooksRssIdPUT /webhooks/rss/{id}Update RSS Hook
dofusdude.WebhooksApiputWebhooksTwitterIdPUT /webhooks/twitter/{id}Update Twitter Hook

Documentation for Models

Documentation for Authorization

Endpoints do not require authorization.

1.0.0

5 months ago

1.0.0-rc.9

5 months ago

1.0.0-rc.8

7 months ago

1.0.0-rc.7

7 months ago

1.0.0-rc.5

7 months ago

1.0.0-rc.3

7 months ago

1.0.0-rc.4

7 months ago

1.0.0-rc.2

7 months ago

0.9.1

9 months ago

0.9.0

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

2 years ago

0.7.2

2 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.5.6

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.1

3 years ago