Agents Resource
Gets agent information about a particular person.

getAgent

Gets all agents used by a single person.

Example

1
const agent: Agent = {
2
objectType: "Agent",
3
name: "Test Agent",
4
mbox: "mailto:[email protected]"
5
};
6
7
xapi.getAgent({
8
agent: agent
9
}).then((result: AxiosResponse<Person>) => {
10
const person: Person = result.data;
11
// do stuff with person
12
});
Copied!

Parameters

Parameter
Type
Required
Description
agent
Agent
true
The agent experiencing the AU.
useCacheBuster
boolean
false
Enables cache busting.

Returns

This method returns an AxiosPromise with the success data containing the Person if successful.
Last modified 1mo ago