@evokegroup/phreesia
v1.0.4
Published
| Parameter | Type | Default | Description | | --------- | ---- | ------- | ----------- | | organizationId | `string` | | | | authorizer | `@evokegroup/oauth2.Authorizer` | | | | clientId | `string` | | | | clientSecret | `string` | | | | auth
Downloads
6
Keywords
Readme
@evokegroup/phreesia
Class: Phreesia
Class: Phreesia.Api
constructor({organizationId, authorizer, clientId, clientSecret, authorizationDomain, apiDomain, logger, timeout})
| Parameter | Type | Default | Description |
| --------- | ---- | ------- | ----------- |
| organizationId | string
| | |
| authorizer | @evokegroup/oauth2.Authorizer
| | |
| clientId | string
| | |
| clientSecret | string
| | |
| authorizationDomain | string
| | |
| apiDomain | string
| | |
| logger | @evokegroup/logger
| | |
| timeout | number
| 30000
| Timeout for requests |
authenticate() => Promise<OAuth2.AccessToken>
Authenticates. Called automatically.
campaignOptIns({dateFrom, dateTo}) => Promise<Phreesia.Entities.OptIn[]>
Retrieves campaign opt ins.
Class: Api.TokenAuthorizer extends OAuth2.WebTokenAuthorizer
constructor({ host, clientId, clientSecret, logger })
Class: Phreesia.Entities.OptIn
| Property | Type |
| -------- | ---- |
| CampaignId | number
|
| OrganizationId | number
|
| EmailAddress | string
|
| FirstName | string
|
| LastName | string
|
| PhoneNumber | string`` |
| OptedInAt | string
|
| Data | object
|