Object - websub : IntentVerificationRequest

Object representing an intent verification request received.

Methods

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

  • request Request (default BLangTypeInit: new null ([]) )
  • The HTTP request received for intent verification

buildSubscriptionVerificationResponse

(string expectedTopic)

returns Response

Builds the response for the request, verifying intention to subscribe, if the topic matches that expected.

Parameters

  • expectedTopic string
  • The topic for which subscription should be accepted

  • Return Type

    (Response)
  • http:Response The response to the hub verifying/denying intent to subscribe

buildUnsubscriptionVerificationResponse

(string expectedTopic)

returns Response

Builds the response for the request, verifying intention to unsubscribe, if the topic matches that expected.

Parameters

  • expectedTopic string
  • The topic for which unsubscription should be accepted

  • Return Type

    (Response)
  • http:Response The response to the hub verifying/denying intent to unsubscribe