/api/negotiate
Negotiate
GET
https://{yourEndpoint}/api/negotiate
Calling the negotiate
endpoint along with generated UUID in x-tezos-live-userid
HTTP header will return url
and accessToken
in the response, which you will use for SignalR hub connection.
Headers
Name | Type | Description |
---|---|---|
x-tezos-live-userid | string | UUID client identification |
You will need the
url
Response parameter for SignalR hub connectionaccessToken
Response parameter for SignalR hub connectionx-tezos-live-userid
parameter for Subscribe/Unsubscribe calls
For generating UUIDs you can use any library, that complies with RFC4122. For example https://www.npmjs.com/package/uuid. You can also use different method for generating userIds, as long as you can ensure, that each client will have unique id.
Last updated