User Streams

User streams are long-lasting connections between the API and user-facing clients, for near-realtime interaction. They are similar to App Streams but for individual users.

Look at How To: User Streams for details on usage.

Endpoints:

DELETE /users/me/streams/{connection_id}

Token: user

Scope: any

Delete a user stream.

Example
curl "https://api.pnut.io/v0/users/me/streams/${CONNECTION_ID}" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -X GET \
    -H "X-Pretty-Json: 1"

Returns 204.

-

DELETE /users/me/streams/{connection_id}/{subscription_id}

Token: user

Scope: any

Delete a subscription for a user stream.

Example
curl "https://api.pnut.io/v0/users/me/streams/${CONNECTION_ID}/${SUBSCRIPTION_ID}" \
    -H "Authorization: Bearer ${ACCESS_TOKEN}" \
    -X GET \
    -H "X-Pretty-Json: 1"

Returns 204.

--