Skip to content

Latest commit

 

History

History
120 lines (85 loc) · 3.52 KB

File metadata and controls

120 lines (85 loc) · 3.52 KB

swagger_client.UserdevicesApi

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

create_device

object create_device(options)

Create iOS device profile

Create iOS device profile for the current user

Example

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)

Parameters

Name Type Description Notes
options Options1

Return type

object

Authorization

apikey, filetoken

HTTP request headers

  • 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_devices_for_user

list[InlineResponse2004] list_devices_for_user()

List iOS device profiles

List all iOS device profiles for the current user

Example

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)

Parameters

This endpoint does not need any parameter.

Return type

list[InlineResponse2004]

Authorization

apikey, filetoken

HTTP request headers

  • 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]