Client Libraries

This page provides links to convenient ways to access theSDM API.

SDM API client libraries

The SDM API is built on HTTP and JSON, so any standard HTTP client cansend requests to it and parse the responses.

However, instead of creating HTTP requests and parsing responses manually, youmay want to use the Google APIs client libraries. The client libraries providebetter language integration, improved security, and support for making callsthat require user authorization.

Go

Get the latestSDM API client library for Go. Read the client library'sdeveloper's guide.

Java

This page contains information about getting started with the Smart Device Management API by usingthe Google API Client Library for Java. For more information, see the following documentation:

Add the client library to your project

Select your build environment (Maven or Gradle) from the following tabs:

Maven

Add the following to yourpom.xml file:

Seeall versions available on the Maven Central Repository.

Gradle

Add the following to yourbuild.gradle file:

Seeall versions available on the Maven Central Repository.

JavaScript

Read the client library'sdeveloper's guide.

.NET

This page contains information about getting started with the Smart Device Management API by usingthe Google API Client Library for .NET. For more information, see the following documentation:

Downloading the library

Install the NuGet package:Google.Apis.

Node.js

Get the latestSDM API client library for Node.js. Read the client library'sdeveloper's guide.

Obj-C

Get the latestSDM API client library for Objective-C. Read the client library'sdeveloper's guide.

PHP

Get the latestSDM API client library for PHP. Read the client library'sdeveloper's guide.

Python

This page contains information about getting started with the Smart Device Management API by usingthe Google API Client Library for Python (v1/v2). For more information, see the following documentation:

System requirements

Install the client library

You can either use a package manager or manually download and install the Python client library:

Managed install

Use pip or setuptools to manage your installation. You might need to runsudo first.

  • pip (preferred):
    pip install --upgrade google-api-python-client
  • Setuptools:
    easy_install --upgrade google-api-python-client

Manual install

  1. Download the latest client library for Python.
  2. Unpack the code.
  3. Install:
    python setup.py install

App Engine

Because the Python client libraries aren't installed in theApp Engine Python runtime environment, you must copy them into your application just like third-party libraries.

Ruby

This page contains information about getting started with the Smart Device Management API by usingthe Google API Client Library for Ruby. For more information, see the following documentation:

Install thegoogle-api-client gem

Depending on your system, you might need to prepend these commands withsudo.

If you haven't installed the Google API Client Library for Ruby before, install by usingRubyGems:

gem install google-api-client

If you already have the gem installed, update to the latest version:

gem update -y google-api-client

Get started with the Google API Client Library for Ruby

To learn how to make your first request, see theGet started guide.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-26 UTC.