ODPClient
ODP Node SDK / ODPClient
ODPClient
Hierarchy
Index
Constructors
Properties
Methods
Constructors
constructor()
Signature
new ODPClient(config: null | Config | InternalConfig = null): ODPClient;
Parameters
Name | Type | Default value |
---|---|---|
config | null | Config | InternalConfig | null |
Returns
Defined in: src/Api/ODPClient.ts:45
Properties
identifier
Identifier
Manage customer identifiers using the v3 APIs
Defined in: src/Api/ODPClient.ts:33
list
Lists
Manage list subscriptions using the v3 APIs
Defined in: src/Api/ODPClient.ts:38
schema
Manage schema (ODP domain objects and fields) using the v3 APIs
Defined in: src/Api/ODPClient.ts:28
v3Api
Direct access to query any API by path using the v3 API helper
Defined in: src/Api/ODPClient.ts:43
Methods
customer()
Create or Update a customer profile in ODP using the v3 profiles API
Signature
customer(payload: CustomerPayload | CustomerPayload[], opts?: PayloadOptions): Promise<HttpResponse<CustomerResponse>>;
Parameters
Name | Type |
---|---|
payload | CustomerPayload | CustomerPayload [] |
opts? | PayloadOptions |
Returns
Promise
<HttpResponse
<CustomerResponse
>>
Defined in: src/Api/ODPClient.ts:62
event()
Send an event to ODP using the v3 event API
Signature
event(payload: EventPayload | EventPayload[]): Promise<HttpResponse<EventResponse>>;
Parameters
Name | Type |
---|---|
payload | EventPayload | EventPayload [] |
Returns
Promise
<HttpResponse
<EventResponse
>>
Defined in: src/Api/ODPClient.ts:55
graphql()
Query data using the GraphQL API
Signature
graphql<T>(query: string, variables?: object): Promise<GqlHttpResponse<T>>;
Type parameters
T
extendsV3Response
Parameters
Name | Type |
---|---|
query | string |
variables? | {} |
Returns
Promise
<GqlHttpResponse
<T
>>
Defined in: src/Api/ODPClient.ts:79
object()
Create or Update an object in ODP using the v3 objects API
Signature
object(type: string, payload: ObjectPayload | ObjectPayload[], opts?: PayloadOptions): Promise<HttpResponse<ObjectResponse>>;
Parameters
Name | Type |
---|---|
type | string |
payload | ObjectPayload | ObjectPayload [] |
opts? | PayloadOptions |
Returns
Promise
<HttpResponse
<ObjectResponse
>>
Defined in: src/Api/ODPClient.ts:70
Updated 18 days ago