Skip to content

Entities

Steve Greatrex edited this page Feb 19, 2015 · 4 revisions

Working with Entities

Entities refer to Subjects (i.e. players), Users and Groups within the EDGE10 system. Details of all 3 are accessible through the API though only Subjects can be created at this stage.

Note: these samples use API key authentication as described under Authentication.

Getting Entities

You can get a list of all entities visible to the authenticated user with the /api/entity call:

request({
    method: 'GET',
    url: config.siteUrl + '/api/entity',
    headers: {
        'X-ApiKey': apiKey
    },
    json: true
});

This returns an array with details of every visible entity.

Samples

Clone this wiki locally