instance properties
Methods to call the Rev APIs are broken up into namespaces. They roughly match up to the categories in the Rev API Docs Documentation for the individual api namespaces are broken out into separate pages:
.admin
: admin api
.admin
: Admin Methods
.audit
: Audit Methods
.auth
: Auth Methods
.category
: Category Methods
.channel
: Channel Methods
.device
: Device Methods
.environment
: Environment Methods
.group
: Group Methods
.playlist
: Playlist Methods
.recording
: Recording Methods
.upload
: Upload Methods
.user
: User Methods
.video
: Video Methods
.webcast
: Webcast Methods
.zones
: Zone Methods
for internal use
Methods to directly make (authenticated) HTTP requests
Methods to maintain the authentication session (accessToken)
The Rev tenant url (i.e. https://my.rev.url)
Returns true if session is connected and token's expiration date is in the future
Date
value when current accessToken
will expire
get/set serialized session state (accessToken, expiration, and userId/apiKey) Useful if you need to create a new RevClient instance with the same accessToken
get/set serialized session state (accessToken, expiration, and userId/apiKey) Useful if you need to create a new RevClient instance with the same accessToken
the current session's accessToken
Readonly
adminReadonly
auditReadonly
authReadonly
categoryReadonly
channelReadonly
deviceReadonly
environmentReadonly
groupReadonly
playlistReadonly
recordingReadonly
uploadReadonly
userReadonly
videoReadonly
webcastReadonly
zonesturns on/off debug logging to console
used internally to write debug log entries. Does nothing if logEnabled
is false
Make a DELETE Request
API path
Optional
data: {}query parameters as JSON object
Optional
options: RequestOptionsAdditional request options
Make a GET Request
API path
Optional
data: {}Query parameters as json object
Optional
options: RequestOptionsAdditional request options
Depends on options.responseType/API response - usually JSON object except for binary download endpoints
Make a PATCH Request
API path
Optional
data: {}Request body
Optional
options: RequestOptionsAdditional request options
Make a POST Request
API path
Optional
data: {}Request body
Optional
options: RequestOptionsAdditional request options
Depends on options.responseType/API response - usually JSON object
Make a GET Request
API path
Optional
data: {}Request body
Optional
options: RequestOptionsAdditional request options
Depends on options.responseType/API response - usually JSON object or void
make a REST request. The Authorization http header for the current session will automatically be added.
HTTP Method
API endpoint path
Request body if PUT/POST/PATCH or query parameters object if GET/DELETE/HEAD. objects/arrays are automatically stringified
additional request options, including additional HTTP Headers if necessary.
the decoded response body as well as statuscode/headers/and raw response
All API interactions are wrapped up in the
RevClient
class.Example