createAndSubscribe( … )
The <PayloadAndSubscription>
object is basically a <PayloadSubscription>
object with the created payload results in the created
property:
All information that applies on Sdk.payload.create()
and Sdk.payload.subscribe()
applies. create( … ) / subscribe( … ). For the contents of a Payload, see the API Docs for more information about payloads object contents.
Differences are:
The input for a
Sdk.payload.createAndSubscribe()
call isn't a payload UUID / existing payload, but a payload to create.The response object also contains (
<PayloadAndSubscription>.created
) the response obtained when creating the payload.
Example code
Object
Last updated