Constructs an instance of this controller.
This endpoint is called by third-party data providers to create or update events for remote accounts, e.g. upon activity completion.
An express
response object that will be used to attach the challenge when verification succeeds.
This endpoint is called by third-party data providers to initially
create webhook subscriptions for remote accounts.
This endpoint is secured by a provider verification token that
must be attached to the request and that must match the runtime's
configuration.
An express
response object that will be used to attach the challenge when verification succeeds.
A third-party data provider name, e.g. "strava"
.
Promiseexpress
response object that contains the verification challenge as attached in the request.
Generated using TypeDoc
OAUTH
The web hooks controller of the app. Handles requests that are issued from third-party data providers such as Strava or Apple Health.
This controller defines the following routes:
/webhook/:provider
GET
hub
in the request query that must contain fields:verify_token
andchallenge
. Responds with the challenge as attached to the request only if the verification token is valid./webhook/:provider
POST
v0.3.2