All URIs are relative to https://home.ourflix.de:32865/emby
Method | HTTP request | Description |
---|---|---|
delete_devices | DELETE /Devices | Deletes a device |
get_devices | GET /Devices | Gets all devices |
get_devices_camerauploads | GET /Devices/CameraUploads | Gets camera upload history for a device |
get_devices_info | GET /Devices/Info | Gets info for a device |
get_devices_options | GET /Devices/Options | Gets options for a device |
post_devices_camerauploads | POST /Devices/CameraUploads | Uploads content |
post_devices_options | POST /Devices/Options | Updates device options |
delete_devices(id)
Deletes a device
No authentication required
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi()
id = 'id_example' # str | Device Id
try:
# Deletes a device
api_instance.delete_devices(id)
except ApiException as e:
print("Exception when calling DeviceServiceApi->delete_devices: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Device Id |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
QueryResultDevicesDeviceInfo get_devices()
Gets all devices
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
try:
# Gets all devices
api_response = api_instance.get_devices()
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceServiceApi->get_devices: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DevicesContentUploadHistory get_devices_camerauploads(device_id)
Gets camera upload history for a device
Requires authentication as user
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
device_id = 'device_id_example' # str | Device Id
try:
# Gets camera upload history for a device
api_response = api_instance.get_devices_camerauploads(device_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceServiceApi->get_devices_camerauploads: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
device_id | str | Device Id |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DevicesDeviceInfo get_devices_info(id)
Gets info for a device
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
id = 'id_example' # str | Device Id
try:
# Gets info for a device
api_response = api_instance.get_devices_info(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceServiceApi->get_devices_info: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Device Id |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DevicesDeviceOptions get_devices_options(id)
Gets options for a device
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
id = 'id_example' # str | Device Id
try:
# Gets options for a device
api_response = api_instance.get_devices_options(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceServiceApi->get_devices_options: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | str | Device Id |
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_devices_camerauploads(body, device_id, album, name, id)
Uploads content
Requires authentication as user
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
body = embyapi.Object() # Object | Binary stream
device_id = 'device_id_example' # str | Device Id
album = 'album_example' # str | Album
name = 'name_example' # str | Name
id = 'id_example' # str | Id
try:
# Uploads content
api_instance.post_devices_camerauploads(body, device_id, album, name, id)
except ApiException as e:
print("Exception when calling DeviceServiceApi->post_devices_camerauploads: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | Object | Binary stream | |
device_id | str | Device Id | |
album | str | Album | |
name | str | Name | |
id | str | Id |
void (empty response body)
- Content-Type: application/octet-stream
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
post_devices_options(body)
Updates device options
Requires authentication as administrator
from __future__ import print_function
import time
import embyapi
from embyapi.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikeyauth
configuration = embyapi.Configuration()
configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class
api_instance = embyapi.DeviceServiceApi(embyapi.ApiClient(configuration))
body = embyapi.DevicesDeviceOptions() # DevicesDeviceOptions | DeviceOptions:
try:
# Updates device options
api_instance.post_devices_options(body)
except ApiException as e:
print("Exception when calling DeviceServiceApi->post_devices_options: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | DevicesDeviceOptions | DeviceOptions: |
void (empty response body)
- Content-Type: application/json, application/xml
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]