Skip to main content
Skip table of contents

FavoritesApi. iOS

Api to manipulate with favorite cameras.

Make camera favorite

Make camera favorite by it's id.

If request was successful, the response would be nil. If any error would occur you would get an VMSApiError object.

CODE
createFavorite(with cameraId: Int, completion: (VMSApiError?))

Remove camera from favorites

Remove camera from favorites by it's id.

If request was successful, the response would be nil. If any error would occur you would get an VMSApiError object.

CODE
deleteFavorite(with cameraId: Int, completion: (VMSApiError?))

Get list of favorite cameras

Get list of favorite cameras. Specify page for request. For the first request set page = 0.

If request was successful you'll get paginated response of cameras. If any error would occur you would get an VMSApiError object.

CODE
getFavoritesList(page: Int, completion: (PaginatedRespon

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.