Constructors
constructor
- new SeamHttpWebhooks(apiKeyOrOptions?): SeamHttpWebhooks
-
Properties
client
client: AxiosInstance
Methods
create
- create(body): Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}>
-
Parameters
-
body: {
event_types?: string[];
url: string;
}
-
Optional
event_types?: string[]
-
url: string
Returns Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}>
delete
- delete(body): Promise<void>
-
Parameters
-
body: {
webhook_id: string;
}
Returns Promise<void>
get
- get(body): Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}>
-
Parameters
-
body: {
webhook_id: string;
}
Returns Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}>
list
- list(params?): Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}[]>
-
Returns Promise<{
event_types?: string[];
secret?: string;
url: string;
webhook_id: string;
}[]>
Static
fromApiKey
- fromApiKey(apiKey, options?): SeamHttpWebhooks
-
Static
fromClient
- fromClient(client, options?): SeamHttpWebhooks
-
Static
fromClientSessionToken
- fromClientSessionToken(clientSessionToken, options?): SeamHttpWebhooks
-
Parameters
-
clientSessionToken: string
-
Static
fromPublishableKey
- fromPublishableKey(publishableKey, userIdentifierKey, options?): Promise<SeamHttpWebhooks>
-
Parameters
-
publishableKey: string
-
userIdentifierKey: string
-