All URIs are relative to https://api.dofusdu.de
Method | HTTP request | Description |
---|---|---|
deleteWebhooksAlmanaxId | DELETE /webhooks/almanax/{id} | Unregister Almanax Hook |
deleteWebhooksRssId | DELETE /webhooks/rss/{id} | Unregister RSS Hook |
deleteWebhooksTwitterId | DELETE /webhooks/twitter/{id} | Unregister Twitter Hook |
getMetaWebhooksAlmanax | GET /meta/webhooks/almanax | Get Almanax Hook Metainfo |
getMetaWebhooksRss | GET /meta/webhooks/rss | Get RSS Hook Metainfo |
getMetaWebhooksTwitter | GET /meta/webhooks/twitter | Get Twitter Hook Metainfo |
getWebhooksAlmanaxId | GET /webhooks/almanax/{id} | Get Almanax Hook |
getWebhooksRssId | GET /webhooks/rss/{id} | Get RSS Hook |
getWebhooksTwitterId | GET /webhooks/twitter/{id} | Get Twitter Hook |
postWebhooksAlmanax | POST /webhooks/almanax | Register Almanax Hook |
postWebhooksRss | POST /webhooks/rss | Register RSS Hook |
postWebhooksTwitter | POST /webhooks/twitter | Register Twitter Hook |
putWebhooksAlmanaxId | PUT /webhooks/almanax/{id} | Update Almanax Hook |
putWebhooksRssId | PUT /webhooks/rss/{id} | Update RSS Hook |
putWebhooksTwitterId | PUT /webhooks/twitter/{id} | Update Twitter Hook |
deleteWebhooksAlmanaxId(id)
Unregister Almanax Hook
Delete a Webhook from the service.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.deleteWebhooksAlmanaxId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteWebhooksRssId(id)
Unregister RSS Hook
Delete a Webhook from the service.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.deleteWebhooksRssId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
deleteWebhooksTwitterId(id)
Unregister Twitter Hook
Delete a Webhook from the service.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.deleteWebhooksTwitterId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
GetMetaWebhooksTwitter200Response getMetaWebhooksAlmanax()
Get Almanax Hook Metainfo
Get a list of all available subscriptions.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
apiInstance.getMetaWebhooksAlmanax((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
GetMetaWebhooksTwitter200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetMetaWebhooksTwitter200Response getMetaWebhooksRss()
Get RSS Hook Metainfo
Get a list of all available subscriptions.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
apiInstance.getMetaWebhooksRss((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
GetMetaWebhooksTwitter200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
GetMetaWebhooksTwitter200Response getMetaWebhooksTwitter()
Get Twitter Hook Metainfo
Get a list of all available subscriptions.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
apiInstance.getMetaWebhooksTwitter((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
GetMetaWebhooksTwitter200Response
No authorization required
- Content-Type: Not defined
- Accept: application/json
AlmanaxWebhook getWebhooksAlmanaxId(id)
Get Almanax Hook
Retrieve details about an existing Almanax Webhook with a given uuid.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.getWebhooksAlmanaxId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json
RssWebhook getWebhooksRssId(id)
Get RSS Hook
Retrieve details about an existing RSS Webhook with a given uuid.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.getWebhooksRssId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json
TwitterWebhook getWebhooksTwitterId(id)
Get Twitter Hook
Retrieve details about an existing Twitter Webhook with a given uuid.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
apiInstance.getWebhooksTwitterId(id, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json
postWebhooksAlmanax(opts)
Register Almanax Hook
Register a new Webhook to post Almanax updates.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let opts = {
'createAlmanaxWebhook': {"bonus_whitelist":null,"bonus_blacklist":null,"subscriptions":["dofus2_fr"],"format":"discord","callback":"https://discord.com/api/webhooks/XYZ","daily_settings":{"timezone":"Europe/Paris","midnight_offset":0},"iso_date":false,"mentions":{"kolossium-experience":[{"discord_id":1234,"is_role":true,"ping_days_before":null}]},"intervals":["daily"],"weekly_weekday":"sunday"} // CreateAlmanaxWebhook |
};
apiInstance.postWebhooksAlmanax(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
createAlmanaxWebhook | CreateAlmanaxWebhook | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
postWebhooksRss(opts)
Register RSS Hook
Register a new Webhook to post RSS news as soon as they are posted.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let opts = {
'createRSSWebhook': {"whitelist":["retro"],"blacklist":null,"subscriptions":["dofus2-en-official-news"],"format":"discord","preview_length":2000,"callback":"https://discord.com/api/webhooks/XYZ"} // CreateRSSWebhook |
};
apiInstance.postWebhooksRss(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
createRSSWebhook | CreateRSSWebhook | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
postWebhooksTwitter(opts)
Register Twitter Hook
Register a new Webhook to post Twitter updates as soon as they are posted.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let opts = {
'createTwitterWebhook': {"whitelist":null,"blacklist":null,"subscriptions":["DOFUSfr"],"format":"discord","preview_length":280,"callback":"https://discord.com/api/webhooks/XYZ"} // CreateTwitterWebhook |
};
apiInstance.postWebhooksTwitter(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
createTwitterWebhook | CreateTwitterWebhook | [optional] |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
AlmanaxWebhook putWebhooksAlmanaxId(id, opts)
Update Almanax Hook
Update the details of an Almanax Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
let opts = {
'putAlmanaxWebhook': {"bonus_whitelist":[],"bonus_blacklist":null,"subscriptions":null,"daily_settings":{"timezone":"Europe/Paris","midnight_offset":0},"iso_date":false,"mentions":{"kolossium-experience":[{"discord_id":1234,"is_role":true,"ping_days_before":null}]},"intervals":["daily"],"weekly_weekday":"sunday"} // PutAlmanaxWebhook |
};
apiInstance.putWebhooksAlmanaxId(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
putAlmanaxWebhook | PutAlmanaxWebhook | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
RssWebhook putWebhooksRssId(id, opts)
Update RSS Hook
Update the details of a RSS Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
let opts = {
'putRSSWebhook': {"whitelist":null,"blacklist":null,"subscriptions":null,"preview_length":60} // PutRSSWebhook |
};
apiInstance.putWebhooksRssId(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
putRSSWebhook | PutRSSWebhook | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
TwitterWebhook putWebhooksTwitterId(id, opts)
Update Twitter Hook
Update the details of a Twitter Webhook. All fields are optional and arrays will be overwritten, so always put all selected items of an array.
import dofusdude from 'dofusdude-js';
let apiInstance = new dofusdude.WebhooksApi();
let id = "id_example"; // String |
let opts = {
'putTwitterWebhook': {"whitelist":["retro"],"blacklist":null,"subscriptions":["dofus2-en-official-changelog"],"preview_length":null} // PutTwitterWebhook |
};
apiInstance.putWebhooksTwitterId(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ||
putTwitterWebhook | PutTwitterWebhook | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json