All URIs are relative to https://localhost/api/v1
| Method | HTTP request | Description |
|---|---|---|
| create_device | POST /users/me/devices | Create iOS device profile |
| list_devices_for_user | GET /users/me/devices | List iOS device profiles |
object create_device(options)
Create iOS device profile
Create iOS device profile for the current user
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure HTTP basic authorization: filetoken
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.UserdevicesApi(swagger_client.ApiClient(configuration))
options = swagger_client.Options1() # Options1 |
try:
# Create iOS device profile
api_response = api_instance.create_device(options)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserdevicesApi->create_device: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| options | Options1 |
object
- Content-Type: application/json
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[InlineResponse2004] list_devices_for_user()
List iOS device profiles
List all iOS device profiles for the current user
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: apikey
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# Configure HTTP basic authorization: filetoken
configuration = swagger_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = swagger_client.UserdevicesApi(swagger_client.ApiClient(configuration))
try:
# List iOS device profiles
api_response = api_instance.list_devices_for_user()
pprint(api_response)
except ApiException as e:
print("Exception when calling UserdevicesApi->list_devices_for_user: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json, text/plain, text/html, text/csv
[Back to top] [Back to API list] [Back to Model list] [Back to README]