These code samples do not utilize Pydevice. For more information on Pydevice, please visit this article.

All of these samples require adjustments to the Python code to include your organization's API key and a few other details depending on the sample.

Requirements - Requests
Versions - Python 3.6.3, Requests 2.18.4

As with any code sample, please realize this is not production-quality and is for instructional purposes only.

Device Magic Database

This is a Python sample for reading submissions from a form's Device Magic Database.
Device Magic Database API

Devices

This is a Python sample showing retrieve properties, approve, remove, update, and list all devices via the Device Magic API.
Devices API

Forms

This is a Python sample showing how to list, view, create, update, delete forms via the Device Magic API.
Forms API

Destinations

This is a Python sample showing how to list, view, create, update, delete, and copy destinations via the Device Magic API.
Destination API

Groups

This is a Python sample showing how to list, create, update, and delete groups via the Device Magic API.
Groups APIĀ 

Resources

This is a Python sample showing how to view, download, create, update, and destroy Resources via the Device Magic API. The sample utilizes the Services Agreement PDF, which can be downloaded here.
Resources APIĀ 

Dispatch

This is a Python sample showing how to view, create, update, and delete dispatched forms via the Device Magic API.
Dispatch API

Did this answer your question?