People
Enrich a person profile
import { Structure } from "structure-ac";
import { EnrichPersonResponse } from "structure-ac/dist/sdk/models/operations";
const sdk = new Structure({
security: {
bearerAuth: "",
},
});
sdk.people.enrich({
id: "d019da1f-fe78-4f09-bb00-74f15471b5e6",
}).then((res: EnrichPersonResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.EnrichPersonRequest | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.EnrichPersonResponse>
Search People
import { Structure } from "structure-ac";
import { SearchPeopleResponse } from "structure-ac/dist/sdk/models/operations";
const sdk = new Structure({
security: {
bearerAuth: "",
},
});
sdk.people.search({
filter: "repudiandae",
limit: "quae",
page: "ipsum",
query: "quidem",
}).then((res: SearchPeopleResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Parameter | Type | Required | Description |
---|---|---|---|
request |
operations.SearchPeopleApplicationJSON | ✔️ | The request object to use for the request. |
config |
AxiosRequestConfig | ➖ | Available config options for making requests. |
Promise<operations.SearchPeopleResponse>