Subscription
This endpoint will allow a connection upgrade to a websocket
Authorizations
OAuth2clientCredentialsRequiredToken URL:
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
Path parameters
categorystringRequired
Category of the endpoint to subscribe to
endpointstringRequired
Which endpoint to subscribe to
Responses
101
Websocket connection established.
404
Endpoint does not exist
405
Endpoint does not support subscription
get/v1/{category}/{endpoint}/subscribe
GET /api/v1/{category}/{endpoint}/subscribe HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Authorizations
OAuth2clientCredentialsRequiredToken URL:
Plugin authentication using Bearer token. For more details, see Fotokite API Documentation.
cookie
connectionstringRequiredExample:
Which connection to use
websocket:2373d2d1-d22d-4b5a-8fef-67bffdd85aefPath parameters
categorystringRequired
Category of the endpoint to subscribe to
endpointstringRequired
Which endpoint to subscribe to
Responses
201
Subscribed
No content
400
No such connection
404
Endpoint does not exist
405
Endpoint does not support subscription
post/v1/{category}/{endpoint}/subscribe
POST /api/v1/{category}/{endpoint}/subscribe HTTP/1.1
Host: 192.168.2.100:3128
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated