Object -
websub
:
IntentVerificationRequest
Object representing an intent verification request received.
Methods
http:Response response = request.buildSubscriptionVerificationResponse("<TOPIC_TO_VERIFY_FOR>");
http:Response response = request.buildUnsubscriptionVerificationResponse("<TOPIC_TO_VERIFY_FOR>");
Fields
- mode string
-
The mode specified in the intent verification request, subscription or unsubscription
- topic string
-
The topic for which intent is verified to subscribe/unsubscribe
- challenge string
-
The challenge to be echoed to verify intent to subscribe/unsubscribe
- leaseSeconds int (default 0)
-
The lease seconds period for which a subscription will be active if intent verification is being done for subscription
http:Response response = request.buildSubscriptionVerificationResponse("<TOPIC_TO_VERIFY_FOR>");
Parameters
- expectedTopic string
-
The topic for which subscription should be accepted
-
Return Type
(Response) An
http:Response
, which to the hub verifying/denying intent to subscribe
http:Response response = request.buildUnsubscriptionVerificationResponse("<TOPIC_TO_VERIFY_FOR>");
Parameters
- expectedTopic string
-
The topic for which unsubscription should be accepted
-
Return Type
(Response) An
http:Response
, which to for the hub verifying/denying intent to unsubscribe