IncidentsService
A list of all methods in the IncidentsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
get_additions | Get the latest additions. This endpoint only shows unchanged objects. |
get_changes | Get the latest updates. This endpoint only provides the latest change for an object. It does not keep track of previous changes. |
get_deletions | Get the latest deleted documents |
get_incidents | Get the latest updates and additions. This endpoint only provides the latest incident for an object. It does not keep track of previous incidents. |
get_additions
Get the latest additions.
This endpoint only shows unchanged objects.
- HTTP Method:
GET
- Endpoint:
/additions
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverAdditionIncidents | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverAdditionIncidents | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
type | any[] | ❌ | Filter by result type(s) |
since | string | ❌ | Filter out older results |
videogame | VideogameIdOrSlug[] | ❌ | Filter by videogame(s) |
Return Type
NonDeletionIncident[]
Example Usage Code Snippet
import { FilterOverAdditionIncidents, Page, PandascoreClient, RangeOverAdditionIncidents } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const incidentId = 9;
const filterOverAdditionIncidents: FilterOverAdditionIncidents = {
id: [incidentId],
modifiedAt: ['labore nul'],
opponentsFilled: true,
};
const incidentId1 = 9;
const rangeOverAdditionIncidents: RangeOverAdditionIncidents = {
id: [incidentId1],
modifiedAt: ['id a'],
};
const page = 1;
const { data } = await pandascoreClient.incidents.getAdditions({
filter: filterOverAdditionIncidents,
range: rangeOverAdditionIncidents,
sort: [[]],
page: page,
perPage: 50,
type: [[]],
since: 'mollit magna no',
videogame: [videogameIdOrSlug],
});
console.log(data);
})();
get_changes
Get the latest updates.
This endpoint only provides the latest change for an object. It does not keep track of previous changes.
- HTTP Method:
GET
- Endpoint:
/changes
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverChangeIncidents | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverChangeIncidents | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
type | any[] | ❌ | Filter by result type(s) |
since | string | ❌ | Filter out older results |
videogame | VideogameIdOrSlug[] | ❌ | Filter by videogame(s) |
Return Type
Incident[]
Example Usage Code Snippet
import { FilterOverChangeIncidents, Page, PandascoreClient, RangeOverChangeIncidents } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const incidentId = 9;
const filterOverChangeIncidents: FilterOverChangeIncidents = {
id: [incidentId],
modifiedAt: ['id eiusmod'],
opponentsFilled: true,
};
const incidentId1 = 9;
const rangeOverChangeIncidents: RangeOverChangeIncidents = {
id: [incidentId1],
modifiedAt: ['adipisici'],
};
const page = 1;
const { data } = await pandascoreClient.incidents.getChanges({
filter: filterOverChangeIncidents,
range: rangeOverChangeIncidents,
sort: [[]],
page: page,
perPage: 50,
type: [[]],
since: 'labori',
videogame: [videogameIdOrSlug],
});
console.log(data);
})();
get_deletions
Get the latest deleted documents
- HTTP Method:
GET
- Endpoint:
/deletions
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverDeletionIncidents | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverDeletionIncidents | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
type | any[] | ❌ | Filter by result type(s) |
since | string | ❌ | Filter out older results |
videogame | VideogameIdOrSlug[] | ❌ | Filter by videogame(s) |
Return Type
DeletionIncident[]
Example Usage Code Snippet
import { FilterOverDeletionIncidents, Page, PandascoreClient, RangeOverDeletionIncidents } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const incidentId = 9;
const filterOverDeletionIncidents: FilterOverDeletionIncidents = {
id: [incidentId],
modifiedAt: ['voluptate cu'],
};
const incidentId1 = 9;
const rangeOverDeletionIncidents: RangeOverDeletionIncidents = {
id: [incidentId1],
modifiedAt: ['reprehenderit o'],
};
const page = 1;
const { data } = await pandascoreClient.incidents.getDeletions({
filter: filterOverDeletionIncidents,
range: rangeOverDeletionIncidents,
sort: [[]],
page: page,
perPage: 50,
type: [[]],
since: 'voluptat',
videogame: [videogameIdOrSlug],
});
console.log(data);
})();
get_incidents
Get the latest updates and additions.
This endpoint only provides the latest incident for an object. It does not keep track of previous incidents.
- HTTP Method:
GET
- Endpoint:
/incidents
Parameters
Name | Type | Required | Description |
---|---|---|---|
filter | FilterOverIncidents | ❌ | Options to filter results. String fields are case sensitive For more information on filtering, see docs. |
range | RangeOverIncidents | ❌ | Options to select results within ranges For more information on ranges, see docs. |
sort | any[] | ❌ | Options to sort results For more information on sorting, see docs. |
page | Page | ❌ | Pagination in the form of page=2 or page[size]=30&page[number]=2 |
perPage | number | ❌ | Equivalent to page[size] |
type | any[] | ❌ | Filter by result type(s) |
since | string | ❌ | Filter out older results |
videogame | VideogameIdOrSlug[] | ❌ | Filter by videogame(s) |
Return Type
Incident[]
Example Usage Code Snippet
import { FilterOverIncidents, Page, PandascoreClient, RangeOverIncidents } from 'pandascore_client';
(async () => {
const pandascoreClient = new PandascoreClient({
token: 'YOUR_TOKEN',
});
const incidentId = 9;
const filterOverIncidents: FilterOverIncidents = {
id: [incidentId],
modifiedAt: ['eu'],
opponentsFilled: true,
};
const incidentId1 = 9;
const rangeOverIncidents: RangeOverIncidents = {
id: [incidentId1],
modifiedAt: ['id offici'],
};
const page = 1;
const { data } = await pandascoreClient.incidents.getIncidents({
filter: filterOverIncidents,
range: rangeOverIncidents,
sort: [[]],
page: page,
perPage: 50,
type: [[]],
since: 'dolore adip',
videogame: [videogameIdOrSlug],
});
console.log(data);
})();
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs