From 48819b028652f8173b6ce20e95af939862f452f5 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Tue, 17 Sep 2019 17:13:42 +0200 Subject: [PATCH] Regenerate client from commit 443a711 of spec repo --- .apigentools-info | 8 + .openapi-generator-ignore | 23 + .openapi-generator/VERSION | 1 + index.html | 16480 +++++++++++++++++++++++++++++++++++ 4 files changed, 16512 insertions(+) create mode 100644 .apigentools-info create mode 100644 .openapi-generator-ignore create mode 100644 .openapi-generator/VERSION create mode 100644 index.html diff --git a/.apigentools-info b/.apigentools-info new file mode 100644 index 0000000..af59cb8 --- /dev/null +++ b/.apigentools-info @@ -0,0 +1,8 @@ +{ + "additional_stamps": [], + "apigentools_version": "0.3.0.dev1", + "codegen_version": "4.1.2", + "info_version": "1", + "image": null, + "spec_repo_commit": "443a711" +} \ No newline at end of file diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 0000000..cd9b8f5 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.1.2 \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..0d167e2 --- /dev/null +++ b/index.html @@ -0,0 +1,16480 @@ + + + + + Iot API + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+

Iot API

+
+
+
+ +
+
+

DevicesV2

+
+
+
+

devicesV2Create

+

create devices_v2

+
+
+
+

+

Creates a new device associated to the user.

+

+
+
/v2/devices
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v2/devices"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        CreateDevicesV2Payload createDevicesV2Payload = ; // CreateDevicesV2Payload | 
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Create(createDevicesV2Payload);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        CreateDevicesV2Payload createDevicesV2Payload = ; // CreateDevicesV2Payload | 
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Create(createDevicesV2Payload);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+CreateDevicesV2Payload *createDevicesV2Payload = ; // 
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// create devices_v2
+[apiInstance devicesV2CreateWith:createDevicesV2Payload
+              completionHandler: ^(ArduinoDevicev2 output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var createDevicesV2Payload = ; // {CreateDevicesV2Payload} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2Create(createDevicesV2Payload, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2CreateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var createDevicesV2Payload = new CreateDevicesV2Payload(); // CreateDevicesV2Payload | 
+
+            try
+            {
+                // create devices_v2
+                ArduinoDevicev2 result = apiInstance.devicesV2Create(createDevicesV2Payload);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2Create: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$createDevicesV2Payload = ; // CreateDevicesV2Payload | 
+
+try {
+    $result = $api_instance->devicesV2Create($createDevicesV2Payload);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2Create: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $createDevicesV2Payload = WWW::OPenAPIClient::Object::CreateDevicesV2Payload->new(); # CreateDevicesV2Payload | 
+
+eval { 
+    my $result = $api_instance->devicesV2Create(createDevicesV2Payload => $createDevicesV2Payload);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2Create: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+createDevicesV2Payload =  # CreateDevicesV2Payload | 
+
+try: 
+    # create devices_v2
+    api_response = api_instance.devices_v2_create(createDevicesV2Payload)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2Create: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let createDevicesV2Payload = ; // CreateDevicesV2Payload
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2Create(createDevicesV2Payload, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
createDevicesV2Payload * +

DeviceV2 describes a device.

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

devicesV2Delete

+

delete devices_v2

+
+
+
+

+

Removes a device associated to the user

+

+
+
/v2/devices/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE "http://api-dev.arduino.cc/iot/v2/devices/{id}"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        try {
+            apiInstance.devicesV2Delete(id);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        try {
+            apiInstance.devicesV2Delete(id);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// delete devices_v2
+[apiInstance devicesV2DeleteWith:id
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.devicesV2Delete(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2DeleteExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+
+            try
+            {
+                // delete devices_v2
+                apiInstance.devicesV2Delete(id);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2Delete: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+
+try {
+    $api_instance->devicesV2Delete($id);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2Delete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+
+eval { 
+    $api_instance->devicesV2Delete(id => $id);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2Delete: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+
+try: 
+    # delete devices_v2
+    api_instance.devices_v2_delete(id)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2Delete: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2Delete(id, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+
+
+
+
+
+

devicesV2GetProperties

+

getProperties devices_v2

+
+
+
+

+

GET device properties

+

+
+
/v2/devices/{id}/properties
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v2/devices/{id}/properties?show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            ArduinoDevicev2properties result = apiInstance.devicesV2GetProperties(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2GetProperties");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            ArduinoDevicev2properties result = apiInstance.devicesV2GetProperties(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2GetProperties");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted properties (optional) (default to false)
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// getProperties devices_v2
+[apiInstance devicesV2GetPropertiesWith:id
+    showDeleted:showDeleted
+              completionHandler: ^(ArduinoDevicev2properties output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+var opts = {
+  'showDeleted': true // {Boolean} If true, shows the soft deleted properties
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2GetProperties(id, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2GetPropertiesExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted properties (optional)  (default to false)
+
+            try
+            {
+                // getProperties devices_v2
+                ArduinoDevicev2properties result = apiInstance.devicesV2GetProperties(id, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2GetProperties: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+$showDeleted = true; // Boolean | If true, shows the soft deleted properties
+
+try {
+    $result = $api_instance->devicesV2GetProperties($id, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2GetProperties: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+my $showDeleted = true; # Boolean | If true, shows the soft deleted properties
+
+eval { 
+    my $result = $api_instance->devicesV2GetProperties(id => $id, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2GetProperties: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted properties (optional) (default to false)
+
+try: 
+    # getProperties devices_v2
+    api_response = api_instance.devices_v2_get_properties(id, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2GetProperties: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2GetProperties(id, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted properties +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

devicesV2List

+

list devices_v2

+
+
+
+

+

Returns the list of devices associated to the user

+

+
+
/v2/devices
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v2/devices?across_user_ids="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        Boolean acrossUserIds = true; // Boolean | If true, returns all the devices
+        try {
+            array[ArduinoDevicev2] result = apiInstance.devicesV2List(acrossUserIds);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        Boolean acrossUserIds = true; // Boolean | If true, returns all the devices
+        try {
+            array[ArduinoDevicev2] result = apiInstance.devicesV2List(acrossUserIds);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+Boolean *acrossUserIds = true; // If true, returns all the devices (optional) (default to false)
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// list devices_v2
+[apiInstance devicesV2ListWith:acrossUserIds
+              completionHandler: ^(array[ArduinoDevicev2] output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var opts = {
+  'acrossUserIds': true // {Boolean} If true, returns all the devices
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2List(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2ListExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var acrossUserIds = true;  // Boolean | If true, returns all the devices (optional)  (default to false)
+
+            try
+            {
+                // list devices_v2
+                array[ArduinoDevicev2] result = apiInstance.devicesV2List(acrossUserIds);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2List: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$acrossUserIds = true; // Boolean | If true, returns all the devices
+
+try {
+    $result = $api_instance->devicesV2List($acrossUserIds);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2List: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $acrossUserIds = true; # Boolean | If true, returns all the devices
+
+eval { 
+    my $result = $api_instance->devicesV2List(acrossUserIds => $acrossUserIds);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2List: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+acrossUserIds = true # Boolean | If true, returns all the devices (optional) (default to false)
+
+try: 
+    # list devices_v2
+    api_response = api_instance.devices_v2_list(acrossUserIds=acrossUserIds)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2List: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let acrossUserIds = true; // Boolean
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2List(acrossUserIds, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + +
Query parameters
+ + + + + + + + + +
NameDescription
across_user_ids + + +
+
+
+ + Boolean + + +
+If true, returns all the devices +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

devicesV2Show

+

show devices_v2

+
+
+
+

+

Returns the device requested by the user

+

+
+
/v2/devices/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v2/devices/{id}"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Show(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Show(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// show devices_v2
+[apiInstance devicesV2ShowWith:id
+              completionHandler: ^(ArduinoDevicev2 output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2Show(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2ShowExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+
+            try
+            {
+                // show devices_v2
+                ArduinoDevicev2 result = apiInstance.devicesV2Show(id);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2Show: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+
+try {
+    $result = $api_instance->devicesV2Show($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2Show: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+
+eval { 
+    my $result = $api_instance->devicesV2Show(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2Show: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+
+try: 
+    # show devices_v2
+    api_response = api_instance.devices_v2_show(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2Show: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2Show(id, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

devicesV2Timeseries

+

timeseries devices_v2

+
+
+
+

+

GET device properties values in a range of time

+

+
+
/v2/devices/{id}/properties/{pid}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v2/devices/{id}/properties/{pid}?limit=&start="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        String pid = pid_example; // String | The id of the property
+        Integer limit = 56; // Integer | The number of properties to select
+        String start = start_example; // String | The time at which to start selecting properties
+        try {
+            ArduinoDevicev2propertyvalues result = apiInstance.devicesV2Timeseries(id, pid, limit, start);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Timeseries");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        String pid = pid_example; // String | The id of the property
+        Integer limit = 56; // Integer | The number of properties to select
+        String start = start_example; // String | The time at which to start selecting properties
+        try {
+            ArduinoDevicev2propertyvalues result = apiInstance.devicesV2Timeseries(id, pid, limit, start);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Timeseries");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+String *pid = pid_example; // The id of the property (default to null)
+Integer *limit = 56; // The number of properties to select (optional) (default to null)
+String *start = start_example; // The time at which to start selecting properties (optional) (default to null)
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// timeseries devices_v2
+[apiInstance devicesV2TimeseriesWith:id
+    pid:pid
+    limit:limit
+    start:start
+              completionHandler: ^(ArduinoDevicev2propertyvalues output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+var pid = pid_example; // {String} The id of the property
+var opts = {
+  'limit': 56, // {Integer} The number of properties to select
+  'start': start_example // {String} The time at which to start selecting properties
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2Timeseries(id, pid, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2TimeseriesExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+            var pid = pid_example;  // String | The id of the property (default to null)
+            var limit = 56;  // Integer | The number of properties to select (optional)  (default to null)
+            var start = start_example;  // String | The time at which to start selecting properties (optional)  (default to null)
+
+            try
+            {
+                // timeseries devices_v2
+                ArduinoDevicev2propertyvalues result = apiInstance.devicesV2Timeseries(id, pid, limit, start);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2Timeseries: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+$pid = pid_example; // String | The id of the property
+$limit = 56; // Integer | The number of properties to select
+$start = start_example; // String | The time at which to start selecting properties
+
+try {
+    $result = $api_instance->devicesV2Timeseries($id, $pid, $limit, $start);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2Timeseries: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+my $pid = pid_example; # String | The id of the property
+my $limit = 56; # Integer | The number of properties to select
+my $start = start_example; # String | The time at which to start selecting properties
+
+eval { 
+    my $result = $api_instance->devicesV2Timeseries(id => $id, pid => $pid, limit => $limit, start => $start);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2Timeseries: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+pid = pid_example # String | The id of the property (default to null)
+limit = 56 # Integer | The number of properties to select (optional) (default to null)
+start = start_example # String | The time at which to start selecting properties (optional) (default to null)
+
+try: 
+    # timeseries devices_v2
+    api_response = api_instance.devices_v2_timeseries(id, pid, limit=limit, start=start)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2Timeseries: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let pid = pid_example; // String
+    let limit = 56; // Integer
+    let start = start_example; // String
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2Timeseries(id, pid, limit, start, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
pid* + + +
+
+
+ + String + + +
+The id of the property +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + + + + + +
NameDescription
limit + + +
+
+
+ + Integer + + +
+The number of properties to select +
+
+
+
+
start + + +
+
+
+ + String + + +
+The time at which to start selecting properties +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

devicesV2Update

+

update devices_v2

+
+
+
+

+

Updates a device associated to the user

+

+
+
/v2/devices/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST "http://api-dev.arduino.cc/iot/v2/devices/{id}"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        Devicev2 devicev2 = ; // Devicev2 | 
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Update(id, devicev2);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        Devicev2 devicev2 = ; // Devicev2 | 
+        try {
+            ArduinoDevicev2 result = apiInstance.devicesV2Update(id, devicev2);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+Devicev2 *devicev2 = ; // 
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// update devices_v2
+[apiInstance devicesV2UpdateWith:id
+    devicev2:devicev2
+              completionHandler: ^(ArduinoDevicev2 output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+var devicev2 = ; // {Devicev2} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.devicesV2Update(id, devicev2, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2UpdateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+            var devicev2 = new Devicev2(); // Devicev2 | 
+
+            try
+            {
+                // update devices_v2
+                ArduinoDevicev2 result = apiInstance.devicesV2Update(id, devicev2);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2Update: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+$devicev2 = ; // Devicev2 | 
+
+try {
+    $result = $api_instance->devicesV2Update($id, $devicev2);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2Update: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+my $devicev2 = WWW::OPenAPIClient::Object::Devicev2->new(); # Devicev2 | 
+
+eval { 
+    my $result = $api_instance->devicesV2Update(id => $id, devicev2 => $devicev2);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2Update: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+devicev2 =  # Devicev2 | 
+
+try: 
+    # update devices_v2
+    api_response = api_instance.devices_v2_update(id, devicev2)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2Update: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let devicev2 = ; // Devicev2
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2Update(id, devicev2, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
devicev2 * +

DeviceV2 describes a device.

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

devicesV2UpdateProperties

+

updateProperties devices_v2

+
+
+
+

+

Update device properties last values

+

+
+
/v2/devices/{id}/properties
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v2/devices/{id}/properties"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.DevicesV2Api;
+
+import java.io.File;
+import java.util.*;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        PropertiesValues propertiesValues = ; // PropertiesValues | 
+        try {
+            apiInstance.devicesV2UpdateProperties(id, propertiesValues);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2UpdateProperties");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.DevicesV2Api;
+
+public class DevicesV2ApiExample {
+
+    public static void main(String[] args) {
+        DevicesV2Api apiInstance = new DevicesV2Api();
+        String id = id_example; // String | The id of the device
+        PropertiesValues propertiesValues = ; // PropertiesValues | 
+        try {
+            apiInstance.devicesV2UpdateProperties(id, propertiesValues);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling DevicesV2Api#devicesV2UpdateProperties");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the device (default to null)
+PropertiesValues *propertiesValues = ; // 
+
+DevicesV2Api *apiInstance = [[DevicesV2Api alloc] init];
+
+// updateProperties devices_v2
+[apiInstance devicesV2UpdatePropertiesWith:id
+    propertiesValues:propertiesValues
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.DevicesV2Api()
+var id = id_example; // {String} The id of the device
+var propertiesValues = ; // {PropertiesValues} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.devicesV2UpdateProperties(id, propertiesValues, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class devicesV2UpdatePropertiesExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new DevicesV2Api();
+            var id = id_example;  // String | The id of the device (default to null)
+            var propertiesValues = new PropertiesValues(); // PropertiesValues | 
+
+            try
+            {
+                // updateProperties devices_v2
+                apiInstance.devicesV2UpdateProperties(id, propertiesValues);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling DevicesV2Api.devicesV2UpdateProperties: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\DevicesV2Api();
+$id = id_example; // String | The id of the device
+$propertiesValues = ; // PropertiesValues | 
+
+try {
+    $api_instance->devicesV2UpdateProperties($id, $propertiesValues);
+} catch (Exception $e) {
+    echo 'Exception when calling DevicesV2Api->devicesV2UpdateProperties: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::DevicesV2Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::DevicesV2Api->new();
+my $id = id_example; # String | The id of the device
+my $propertiesValues = WWW::OPenAPIClient::Object::PropertiesValues->new(); # PropertiesValues | 
+
+eval { 
+    $api_instance->devicesV2UpdateProperties(id => $id, propertiesValues => $propertiesValues);
+};
+if ($@) {
+    warn "Exception when calling DevicesV2Api->devicesV2UpdateProperties: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.DevicesV2Api()
+id = id_example # String | The id of the device (default to null)
+propertiesValues =  # PropertiesValues | 
+
+try: 
+    # updateProperties devices_v2
+    api_instance.devices_v2_update_properties(id, propertiesValues)
+except ApiException as e:
+    print("Exception when calling DevicesV2Api->devicesV2UpdateProperties: %s\n" % e)
+
+ +
+
extern crate DevicesV2Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let propertiesValues = ; // PropertiesValues
+
+    let mut context = DevicesV2Api::Context::default();
+    let result = client.devicesV2UpdateProperties(id, propertiesValues, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the device +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
propertiesValues * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+

PropertiesV1

+
+
+
+

propertiesV1Create

+

create properties_v1

+
+
+
+

+

Creates a new property associated to a thing

+

+
+
/v1/things/{id}/properties
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v1/things/{id}/properties"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        Property property = ; // Property | 
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Create(id, property);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        Property property = ; // Property | 
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Create(id, property);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Property *property = ; // 
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// create properties_v1
+[apiInstance propertiesV1CreateWith:id
+    property:property
+              completionHandler: ^(ArduinoProperty output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var property = ; // {Property} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.propertiesV1Create(id, property, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1CreateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var property = new Property(); // Property | 
+
+            try
+            {
+                // create properties_v1
+                ArduinoProperty result = apiInstance.propertiesV1Create(id, property);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1Create: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$property = ; // Property | 
+
+try {
+    $result = $api_instance->propertiesV1Create($id, $property);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1Create: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $property = WWW::OPenAPIClient::Object::Property->new(); # Property | 
+
+eval { 
+    my $result = $api_instance->propertiesV1Create(id => $id, property => $property);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1Create: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+property =  # Property | 
+
+try: 
+    # create properties_v1
+    api_response = api_instance.properties_v1_create(id, property)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1Create: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let property = ; // Property
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1Create(id, property, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
property * +

PropertyPayload describes a property of a thing. No field is mandatory

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

propertiesV1Delete

+

delete properties_v1

+
+
+
+

+

Removes a property associated to a thing

+

+
+
/v1/things/{id}/properties/{pid}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE "http://api-dev.arduino.cc/iot/v1/things/{id}/properties/{pid}?force="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Boolean force = true; // Boolean | If true, hard delete the property
+        try {
+            apiInstance.propertiesV1Delete(id, pid, force);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Boolean force = true; // Boolean | If true, hard delete the property
+        try {
+            apiInstance.propertiesV1Delete(id, pid, force);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+String *pid = pid_example; // The id of the property (default to null)
+Boolean *force = true; // If true, hard delete the property (optional) (default to false)
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// delete properties_v1
+[apiInstance propertiesV1DeleteWith:id
+    pid:pid
+    force:force
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var pid = pid_example; // {String} The id of the property
+var opts = {
+  'force': true // {Boolean} If true, hard delete the property
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.propertiesV1Delete(id, pid, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1DeleteExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var pid = pid_example;  // String | The id of the property (default to null)
+            var force = true;  // Boolean | If true, hard delete the property (optional)  (default to false)
+
+            try
+            {
+                // delete properties_v1
+                apiInstance.propertiesV1Delete(id, pid, force);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1Delete: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$pid = pid_example; // String | The id of the property
+$force = true; // Boolean | If true, hard delete the property
+
+try {
+    $api_instance->propertiesV1Delete($id, $pid, $force);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1Delete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $pid = pid_example; # String | The id of the property
+my $force = true; # Boolean | If true, hard delete the property
+
+eval { 
+    $api_instance->propertiesV1Delete(id => $id, pid => $pid, force => $force);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1Delete: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+pid = pid_example # String | The id of the property (default to null)
+force = true # Boolean | If true, hard delete the property (optional) (default to false)
+
+try: 
+    # delete properties_v1
+    api_instance.properties_v1_delete(id, pid, force=force)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1Delete: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let pid = pid_example; // String
+    let force = true; // Boolean
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1Delete(id, pid, force, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
pid* + + +
+
+
+ + String + + +
+The id of the property +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
force + + +
+
+
+ + Boolean + + +
+If true, hard delete the property +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

propertiesV1List

+

list properties_v1

+
+
+
+

+

Returns the list of properties associated to the thing

+

+
+
/v1/things/{id}/properties
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v1/things/{id}/properties?show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            array[ArduinoProperty] result = apiInstance.propertiesV1List(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            array[ArduinoProperty] result = apiInstance.propertiesV1List(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted properties (optional) (default to false)
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// list properties_v1
+[apiInstance propertiesV1ListWith:id
+    showDeleted:showDeleted
+              completionHandler: ^(array[ArduinoProperty] output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var opts = {
+  'showDeleted': true // {Boolean} If true, shows the soft deleted properties
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.propertiesV1List(id, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1ListExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted properties (optional)  (default to false)
+
+            try
+            {
+                // list properties_v1
+                array[ArduinoProperty] result = apiInstance.propertiesV1List(id, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1List: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$showDeleted = true; // Boolean | If true, shows the soft deleted properties
+
+try {
+    $result = $api_instance->propertiesV1List($id, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1List: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $showDeleted = true; # Boolean | If true, shows the soft deleted properties
+
+eval { 
+    my $result = $api_instance->propertiesV1List(id => $id, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1List: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted properties (optional) (default to false)
+
+try: 
+    # list properties_v1
+    api_response = api_instance.properties_v1_list(id, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1List: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1List(id, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted properties +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

propertiesV1Send

+

send properties_v1

+
+
+
+

+

Publish a property value to MQTT, as string

+

+
+
/v1/things/{id}/properties/{pid}/send
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v1/things/{id}/properties/{pid}/send"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        PropertyStringValue propertyStringValue = ; // PropertyStringValue | 
+        try {
+            apiInstance.propertiesV1Send(id, pid, propertyStringValue);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Send");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        PropertyStringValue propertyStringValue = ; // PropertyStringValue | 
+        try {
+            apiInstance.propertiesV1Send(id, pid, propertyStringValue);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Send");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+String *pid = pid_example; // The id of the property (default to null)
+PropertyStringValue *propertyStringValue = ; // 
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// send properties_v1
+[apiInstance propertiesV1SendWith:id
+    pid:pid
+    propertyStringValue:propertyStringValue
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var pid = pid_example; // {String} The id of the property
+var propertyStringValue = ; // {PropertyStringValue} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.propertiesV1Send(id, pid, propertyStringValue, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1SendExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var pid = pid_example;  // String | The id of the property (default to null)
+            var propertyStringValue = new PropertyStringValue(); // PropertyStringValue | 
+
+            try
+            {
+                // send properties_v1
+                apiInstance.propertiesV1Send(id, pid, propertyStringValue);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1Send: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$pid = pid_example; // String | The id of the property
+$propertyStringValue = ; // PropertyStringValue | 
+
+try {
+    $api_instance->propertiesV1Send($id, $pid, $propertyStringValue);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1Send: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $pid = pid_example; # String | The id of the property
+my $propertyStringValue = WWW::OPenAPIClient::Object::PropertyStringValue->new(); # PropertyStringValue | 
+
+eval { 
+    $api_instance->propertiesV1Send(id => $id, pid => $pid, propertyStringValue => $propertyStringValue);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1Send: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+pid = pid_example # String | The id of the property (default to null)
+propertyStringValue =  # PropertyStringValue | 
+
+try: 
+    # send properties_v1
+    api_instance.properties_v1_send(id, pid, propertyStringValue)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1Send: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let pid = pid_example; // String
+    let propertyStringValue = ; // PropertyStringValue
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1Send(id, pid, propertyStringValue, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
pid* + + +
+
+
+ + String + + +
+The id of the property +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
propertyStringValue * +

PropertyStringValuePayload describes a property value

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

propertiesV1Show

+

show properties_v1

+
+
+
+

+

Returns the property requested by the user

+

+
+
/v1/things/{id}/properties/{pid}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v1/things/{id}/properties/{pid}?show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Show(id, pid, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted properties
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Show(id, pid, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+String *pid = pid_example; // The id of the property (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted properties (optional) (default to false)
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// show properties_v1
+[apiInstance propertiesV1ShowWith:id
+    pid:pid
+    showDeleted:showDeleted
+              completionHandler: ^(ArduinoProperty output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var pid = pid_example; // {String} The id of the property
+var opts = {
+  'showDeleted': true // {Boolean} If true, shows the soft deleted properties
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.propertiesV1Show(id, pid, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1ShowExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var pid = pid_example;  // String | The id of the property (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted properties (optional)  (default to false)
+
+            try
+            {
+                // show properties_v1
+                ArduinoProperty result = apiInstance.propertiesV1Show(id, pid, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1Show: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$pid = pid_example; // String | The id of the property
+$showDeleted = true; // Boolean | If true, shows the soft deleted properties
+
+try {
+    $result = $api_instance->propertiesV1Show($id, $pid, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1Show: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $pid = pid_example; # String | The id of the property
+my $showDeleted = true; # Boolean | If true, shows the soft deleted properties
+
+eval { 
+    my $result = $api_instance->propertiesV1Show(id => $id, pid => $pid, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1Show: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+pid = pid_example # String | The id of the property (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted properties (optional) (default to false)
+
+try: 
+    # show properties_v1
+    api_response = api_instance.properties_v1_show(id, pid, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1Show: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let pid = pid_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1Show(id, pid, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
pid* + + +
+
+
+ + String + + +
+The id of the property +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted properties +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

propertiesV1Update

+

update properties_v1

+
+
+
+

+

Updates a property associated to a thing

+

+
+
/v1/things/{id}/properties/{pid}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST "http://api-dev.arduino.cc/iot/v1/things/{id}/properties/{pid}"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.PropertiesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Property property = ; // Property | 
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Update(id, pid, property);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.PropertiesV1Api;
+
+public class PropertiesV1ApiExample {
+
+    public static void main(String[] args) {
+        PropertiesV1Api apiInstance = new PropertiesV1Api();
+        String id = id_example; // String | The id of the thing
+        String pid = pid_example; // String | The id of the property
+        Property property = ; // Property | 
+        try {
+            ArduinoProperty result = apiInstance.propertiesV1Update(id, pid, property);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling PropertiesV1Api#propertiesV1Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+String *pid = pid_example; // The id of the property (default to null)
+Property *property = ; // 
+
+PropertiesV1Api *apiInstance = [[PropertiesV1Api alloc] init];
+
+// update properties_v1
+[apiInstance propertiesV1UpdateWith:id
+    pid:pid
+    property:property
+              completionHandler: ^(ArduinoProperty output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.PropertiesV1Api()
+var id = id_example; // {String} The id of the thing
+var pid = pid_example; // {String} The id of the property
+var property = ; // {Property} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.propertiesV1Update(id, pid, property, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class propertiesV1UpdateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new PropertiesV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var pid = pid_example;  // String | The id of the property (default to null)
+            var property = new Property(); // Property | 
+
+            try
+            {
+                // update properties_v1
+                ArduinoProperty result = apiInstance.propertiesV1Update(id, pid, property);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling PropertiesV1Api.propertiesV1Update: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\PropertiesV1Api();
+$id = id_example; // String | The id of the thing
+$pid = pid_example; // String | The id of the property
+$property = ; // Property | 
+
+try {
+    $result = $api_instance->propertiesV1Update($id, $pid, $property);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling PropertiesV1Api->propertiesV1Update: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::PropertiesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::PropertiesV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $pid = pid_example; # String | The id of the property
+my $property = WWW::OPenAPIClient::Object::Property->new(); # Property | 
+
+eval { 
+    my $result = $api_instance->propertiesV1Update(id => $id, pid => $pid, property => $property);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling PropertiesV1Api->propertiesV1Update: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.PropertiesV1Api()
+id = id_example # String | The id of the thing (default to null)
+pid = pid_example # String | The id of the property (default to null)
+property =  # Property | 
+
+try: 
+    # update properties_v1
+    api_response = api_instance.properties_v1_update(id, pid, property)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling PropertiesV1Api->propertiesV1Update: %s\n" % e)
+
+ +
+
extern crate PropertiesV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let pid = pid_example; // String
+    let property = ; // Property
+
+    let mut context = PropertiesV1Api::Context::default();
+    let result = client.propertiesV1Update(id, pid, property, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
pid* + + +
+
+
+ + String + + +
+The id of the property +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
property * +

PropertyPayload describes a property of a thing. No field is mandatory

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+

SeriesV1

+
+
+
+

seriesV1BatchQuery

+

batch_query series_v1

+
+
+
+

+

Returns the batch of time-series data

+

+
+
/v1/series/batch_query
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST "http://api-dev.arduino.cc/iot/v1/series/batch_query"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.SeriesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class SeriesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        SeriesV1Api apiInstance = new SeriesV1Api();
+        BatchQueryRequestsMediaV1 batchQueryRequestsMediaV1 = ; // BatchQueryRequestsMediaV1 | 
+        try {
+            ArduinoSeriesBatch result = apiInstance.seriesV1BatchQuery(batchQueryRequestsMediaV1);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling SeriesV1Api#seriesV1BatchQuery");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.SeriesV1Api;
+
+public class SeriesV1ApiExample {
+
+    public static void main(String[] args) {
+        SeriesV1Api apiInstance = new SeriesV1Api();
+        BatchQueryRequestsMediaV1 batchQueryRequestsMediaV1 = ; // BatchQueryRequestsMediaV1 | 
+        try {
+            ArduinoSeriesBatch result = apiInstance.seriesV1BatchQuery(batchQueryRequestsMediaV1);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling SeriesV1Api#seriesV1BatchQuery");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+BatchQueryRequestsMediaV1 *batchQueryRequestsMediaV1 = ; // 
+
+SeriesV1Api *apiInstance = [[SeriesV1Api alloc] init];
+
+// batch_query series_v1
+[apiInstance seriesV1BatchQueryWith:batchQueryRequestsMediaV1
+              completionHandler: ^(ArduinoSeriesBatch output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.SeriesV1Api()
+var batchQueryRequestsMediaV1 = ; // {BatchQueryRequestsMediaV1} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.seriesV1BatchQuery(batchQueryRequestsMediaV1, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class seriesV1BatchQueryExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new SeriesV1Api();
+            var batchQueryRequestsMediaV1 = new BatchQueryRequestsMediaV1(); // BatchQueryRequestsMediaV1 | 
+
+            try
+            {
+                // batch_query series_v1
+                ArduinoSeriesBatch result = apiInstance.seriesV1BatchQuery(batchQueryRequestsMediaV1);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling SeriesV1Api.seriesV1BatchQuery: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\SeriesV1Api();
+$batchQueryRequestsMediaV1 = ; // BatchQueryRequestsMediaV1 | 
+
+try {
+    $result = $api_instance->seriesV1BatchQuery($batchQueryRequestsMediaV1);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling SeriesV1Api->seriesV1BatchQuery: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::SeriesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::SeriesV1Api->new();
+my $batchQueryRequestsMediaV1 = WWW::OPenAPIClient::Object::BatchQueryRequestsMediaV1->new(); # BatchQueryRequestsMediaV1 | 
+
+eval { 
+    my $result = $api_instance->seriesV1BatchQuery(batchQueryRequestsMediaV1 => $batchQueryRequestsMediaV1);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling SeriesV1Api->seriesV1BatchQuery: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.SeriesV1Api()
+batchQueryRequestsMediaV1 =  # BatchQueryRequestsMediaV1 | 
+
+try: 
+    # batch_query series_v1
+    api_response = api_instance.series_v1_batch_query(batchQueryRequestsMediaV1)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling SeriesV1Api->seriesV1BatchQuery: %s\n" % e)
+
+ +
+
extern crate SeriesV1Api;
+
+pub fn main() {
+    let batchQueryRequestsMediaV1 = ; // BatchQueryRequestsMediaV1
+
+    let mut context = SeriesV1Api::Context::default();
+    let result = client.seriesV1BatchQuery(batchQueryRequestsMediaV1, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
batchQueryRequestsMediaV1 * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

seriesV1BatchQueryRaw

+

batch_query_raw series_v1

+
+
+
+

+

Returns the batch of time-series data raw

+

+
+
/v1/series/batch_query_raw
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST "http://api-dev.arduino.cc/iot/v1/series/batch_query_raw"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.SeriesV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class SeriesV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        SeriesV1Api apiInstance = new SeriesV1Api();
+        BatchQueryRawRequestsMediaV1 batchQueryRawRequestsMediaV1 = ; // BatchQueryRawRequestsMediaV1 | 
+        try {
+            ArduinoSeriesRawBatch result = apiInstance.seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling SeriesV1Api#seriesV1BatchQueryRaw");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.SeriesV1Api;
+
+public class SeriesV1ApiExample {
+
+    public static void main(String[] args) {
+        SeriesV1Api apiInstance = new SeriesV1Api();
+        BatchQueryRawRequestsMediaV1 batchQueryRawRequestsMediaV1 = ; // BatchQueryRawRequestsMediaV1 | 
+        try {
+            ArduinoSeriesRawBatch result = apiInstance.seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling SeriesV1Api#seriesV1BatchQueryRaw");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+BatchQueryRawRequestsMediaV1 *batchQueryRawRequestsMediaV1 = ; // 
+
+SeriesV1Api *apiInstance = [[SeriesV1Api alloc] init];
+
+// batch_query_raw series_v1
+[apiInstance seriesV1BatchQueryRawWith:batchQueryRawRequestsMediaV1
+              completionHandler: ^(ArduinoSeriesRawBatch output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.SeriesV1Api()
+var batchQueryRawRequestsMediaV1 = ; // {BatchQueryRawRequestsMediaV1} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class seriesV1BatchQueryRawExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new SeriesV1Api();
+            var batchQueryRawRequestsMediaV1 = new BatchQueryRawRequestsMediaV1(); // BatchQueryRawRequestsMediaV1 | 
+
+            try
+            {
+                // batch_query_raw series_v1
+                ArduinoSeriesRawBatch result = apiInstance.seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling SeriesV1Api.seriesV1BatchQueryRaw: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\SeriesV1Api();
+$batchQueryRawRequestsMediaV1 = ; // BatchQueryRawRequestsMediaV1 | 
+
+try {
+    $result = $api_instance->seriesV1BatchQueryRaw($batchQueryRawRequestsMediaV1);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling SeriesV1Api->seriesV1BatchQueryRaw: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::SeriesV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::SeriesV1Api->new();
+my $batchQueryRawRequestsMediaV1 = WWW::OPenAPIClient::Object::BatchQueryRawRequestsMediaV1->new(); # BatchQueryRawRequestsMediaV1 | 
+
+eval { 
+    my $result = $api_instance->seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1 => $batchQueryRawRequestsMediaV1);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling SeriesV1Api->seriesV1BatchQueryRaw: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.SeriesV1Api()
+batchQueryRawRequestsMediaV1 =  # BatchQueryRawRequestsMediaV1 | 
+
+try: 
+    # batch_query_raw series_v1
+    api_response = api_instance.series_v1_batch_query_raw(batchQueryRawRequestsMediaV1)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling SeriesV1Api->seriesV1BatchQueryRaw: %s\n" % e)
+
+ +
+
extern crate SeriesV1Api;
+
+pub fn main() {
+    let batchQueryRawRequestsMediaV1 = ; // BatchQueryRawRequestsMediaV1
+
+    let mut context = SeriesV1Api::Context::default();
+    let result = client.seriesV1BatchQueryRaw(batchQueryRawRequestsMediaV1, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
batchQueryRawRequestsMediaV1 * +

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+

ThingsV1

+
+
+
+

thingsV1Create

+

create things_v1

+
+
+
+

+

Creates a new thing associated to the user

+

+
+
/v1/things
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v1/things?force="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        CreateThingsV1Payload createThingsV1Payload = ; // CreateThingsV1Payload | 
+        Boolean force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Create(createThingsV1Payload, force);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        CreateThingsV1Payload createThingsV1Payload = ; // CreateThingsV1Payload | 
+        Boolean force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Create(createThingsV1Payload, force);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Create");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+CreateThingsV1Payload *createThingsV1Payload = ; // 
+Boolean *force = true; // If true, detach device from the other thing, and attach to this thing (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// create things_v1
+[apiInstance thingsV1CreateWith:createThingsV1Payload
+    force:force
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var createThingsV1Payload = ; // {CreateThingsV1Payload} 
+var opts = {
+  'force': true // {Boolean} If true, detach device from the other thing, and attach to this thing
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1Create(createThingsV1Payload, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1CreateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var createThingsV1Payload = new CreateThingsV1Payload(); // CreateThingsV1Payload | 
+            var force = true;  // Boolean | If true, detach device from the other thing, and attach to this thing (optional)  (default to false)
+
+            try
+            {
+                // create things_v1
+                ArduinoThing result = apiInstance.thingsV1Create(createThingsV1Payload, force);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1Create: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$createThingsV1Payload = ; // CreateThingsV1Payload | 
+$force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+
+try {
+    $result = $api_instance->thingsV1Create($createThingsV1Payload, $force);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1Create: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $createThingsV1Payload = WWW::OPenAPIClient::Object::CreateThingsV1Payload->new(); # CreateThingsV1Payload | 
+my $force = true; # Boolean | If true, detach device from the other thing, and attach to this thing
+
+eval { 
+    my $result = $api_instance->thingsV1Create(createThingsV1Payload => $createThingsV1Payload, force => $force);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1Create: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+createThingsV1Payload =  # CreateThingsV1Payload | 
+force = true # Boolean | If true, detach device from the other thing, and attach to this thing (optional) (default to false)
+
+try: 
+    # create things_v1
+    api_response = api_instance.things_v1_create(createThingsV1Payload, force=force)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1Create: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let createThingsV1Payload = ; // CreateThingsV1Payload
+    let force = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1Create(createThingsV1Payload, force, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + +
Body parameters
+ + + + + + + + + +
NameDescription
createThingsV1Payload * +

ThingPayload describes a thing

+ +
+
+ + +
Query parameters
+ + + + + + + + + +
NameDescription
force + + +
+
+
+ + Boolean + + +
+If true, detach device from the other thing, and attach to this thing +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

thingsV1CreateSketch

+

createSketch things_v1

+
+
+
+

+

Creates a new sketch thing associated to the thing

+

+
+
/v1/things/{id}/sketch
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v1/things/{id}/sketch"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        ThingSketch thingSketch = ; // ThingSketch | 
+        try {
+            ArduinoThing result = apiInstance.thingsV1CreateSketch(id, thingSketch);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1CreateSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        ThingSketch thingSketch = ; // ThingSketch | 
+        try {
+            ArduinoThing result = apiInstance.thingsV1CreateSketch(id, thingSketch);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1CreateSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+ThingSketch *thingSketch = ; // 
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// createSketch things_v1
+[apiInstance thingsV1CreateSketchWith:id
+    thingSketch:thingSketch
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var thingSketch = ; // {ThingSketch} 
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1CreateSketch(id, thingSketch, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1CreateSketchExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var thingSketch = new ThingSketch(); // ThingSketch | 
+
+            try
+            {
+                // createSketch things_v1
+                ArduinoThing result = apiInstance.thingsV1CreateSketch(id, thingSketch);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1CreateSketch: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$thingSketch = ; // ThingSketch | 
+
+try {
+    $result = $api_instance->thingsV1CreateSketch($id, $thingSketch);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1CreateSketch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $thingSketch = WWW::OPenAPIClient::Object::ThingSketch->new(); # ThingSketch | 
+
+eval { 
+    my $result = $api_instance->thingsV1CreateSketch(id => $id, thingSketch => $thingSketch);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1CreateSketch: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+thingSketch =  # ThingSketch | 
+
+try: 
+    # createSketch things_v1
+    api_response = api_instance.things_v1_create_sketch(id, thingSketch)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1CreateSketch: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let thingSketch = ; // ThingSketch
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1CreateSketch(id, thingSketch, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
thingSketch * +

ThingSketchPayload describes a sketch of a thing

+ +
+
+ + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

thingsV1Delete

+

delete things_v1

+
+
+
+

+

Removes a thing associated to the user

+

+
+
/v1/things/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE "http://api-dev.arduino.cc/iot/v1/things/{id}?force="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean force = true; // Boolean | If true, hard delete the thing
+        try {
+            apiInstance.thingsV1Delete(id, force);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean force = true; // Boolean | If true, hard delete the thing
+        try {
+            apiInstance.thingsV1Delete(id, force);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Delete");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Boolean *force = true; // If true, hard delete the thing (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// delete things_v1
+[apiInstance thingsV1DeleteWith:id
+    force:force
+              completionHandler: ^(NSError* error) {
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var opts = {
+  'force': true // {Boolean} If true, hard delete the thing
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully.');
+  }
+};
+api.thingsV1Delete(id, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1DeleteExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var force = true;  // Boolean | If true, hard delete the thing (optional)  (default to false)
+
+            try
+            {
+                // delete things_v1
+                apiInstance.thingsV1Delete(id, force);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1Delete: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$force = true; // Boolean | If true, hard delete the thing
+
+try {
+    $api_instance->thingsV1Delete($id, $force);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1Delete: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $force = true; # Boolean | If true, hard delete the thing
+
+eval { 
+    $api_instance->thingsV1Delete(id => $id, force => $force);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1Delete: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+force = true # Boolean | If true, hard delete the thing (optional) (default to false)
+
+try: 
+    # delete things_v1
+    api_instance.things_v1_delete(id, force=force)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1Delete: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let force = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1Delete(id, force, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
force + + +
+
+
+ + Boolean + + +
+If true, hard delete the thing +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

thingsV1DeleteSketch

+

deleteSketch things_v1

+
+
+
+

+

+

+
+
/v1/things/{id}/sketch
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X DELETE "http://api-dev.arduino.cc/iot/v1/things/{id}/sketch"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1DeleteSketch(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1DeleteSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1DeleteSketch(id);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1DeleteSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// deleteSketch things_v1
+[apiInstance thingsV1DeleteSketchWith:id
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1DeleteSketch(id, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1DeleteSketchExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+
+            try
+            {
+                // deleteSketch things_v1
+                ArduinoThing result = apiInstance.thingsV1DeleteSketch(id);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1DeleteSketch: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+
+try {
+    $result = $api_instance->thingsV1DeleteSketch($id);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1DeleteSketch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+
+eval { 
+    my $result = $api_instance->thingsV1DeleteSketch(id => $id);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1DeleteSketch: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+
+try: 
+    # deleteSketch things_v1
+    api_response = api_instance.things_v1_delete_sketch(id)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1DeleteSketch: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1DeleteSketch(id, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

thingsV1Layout

+

layout things_v1

+
+
+
+

+

Returns the thing requested by the user, without last values data

+

+
+
/v1/things/{id}/layout
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v1/things/{id}/layout?show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted thing
+        try {
+            ArduinoThinglayout result = apiInstance.thingsV1Layout(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Layout");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted thing
+        try {
+            ArduinoThinglayout result = apiInstance.thingsV1Layout(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Layout");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted thing (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// layout things_v1
+[apiInstance thingsV1LayoutWith:id
+    showDeleted:showDeleted
+              completionHandler: ^(ArduinoThinglayout output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var opts = {
+  'showDeleted': true // {Boolean} If true, shows the soft deleted thing
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1Layout(id, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1LayoutExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted thing (optional)  (default to false)
+
+            try
+            {
+                // layout things_v1
+                ArduinoThinglayout result = apiInstance.thingsV1Layout(id, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1Layout: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$showDeleted = true; // Boolean | If true, shows the soft deleted thing
+
+try {
+    $result = $api_instance->thingsV1Layout($id, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1Layout: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $showDeleted = true; # Boolean | If true, shows the soft deleted thing
+
+eval { 
+    my $result = $api_instance->thingsV1Layout(id => $id, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1Layout: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted thing (optional) (default to false)
+
+try: 
+    # layout things_v1
+    api_response = api_instance.things_v1_layout(id, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1Layout: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1Layout(id, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted thing +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

thingsV1List

+

list things_v1

+
+
+
+

+

Returns the list of things associated to the user

+

+
+
/v1/things
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v1/things?across_user_ids=&device_id=&show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        Boolean acrossUserIds = true; // Boolean | If true, returns all the things
+        String deviceId = deviceId_example; // String | The id of the device you want to filter
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted things
+        try {
+            array[ArduinoThing] result = apiInstance.thingsV1List(acrossUserIds, deviceId, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        Boolean acrossUserIds = true; // Boolean | If true, returns all the things
+        String deviceId = deviceId_example; // String | The id of the device you want to filter
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted things
+        try {
+            array[ArduinoThing] result = apiInstance.thingsV1List(acrossUserIds, deviceId, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1List");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+Boolean *acrossUserIds = true; // If true, returns all the things (optional) (default to false)
+String *deviceId = deviceId_example; // The id of the device you want to filter (optional) (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted things (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// list things_v1
+[apiInstance thingsV1ListWith:acrossUserIds
+    deviceId:deviceId
+    showDeleted:showDeleted
+              completionHandler: ^(array[ArduinoThing] output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var opts = {
+  'acrossUserIds': true, // {Boolean} If true, returns all the things
+  'deviceId': deviceId_example, // {String} The id of the device you want to filter
+  'showDeleted': true // {Boolean} If true, shows the soft deleted things
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1List(opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1ListExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var acrossUserIds = true;  // Boolean | If true, returns all the things (optional)  (default to false)
+            var deviceId = deviceId_example;  // String | The id of the device you want to filter (optional)  (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted things (optional)  (default to false)
+
+            try
+            {
+                // list things_v1
+                array[ArduinoThing] result = apiInstance.thingsV1List(acrossUserIds, deviceId, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1List: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$acrossUserIds = true; // Boolean | If true, returns all the things
+$deviceId = deviceId_example; // String | The id of the device you want to filter
+$showDeleted = true; // Boolean | If true, shows the soft deleted things
+
+try {
+    $result = $api_instance->thingsV1List($acrossUserIds, $deviceId, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1List: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $acrossUserIds = true; # Boolean | If true, returns all the things
+my $deviceId = deviceId_example; # String | The id of the device you want to filter
+my $showDeleted = true; # Boolean | If true, shows the soft deleted things
+
+eval { 
+    my $result = $api_instance->thingsV1List(acrossUserIds => $acrossUserIds, deviceId => $deviceId, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1List: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+acrossUserIds = true # Boolean | If true, returns all the things (optional) (default to false)
+deviceId = deviceId_example # String | The id of the device you want to filter (optional) (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted things (optional) (default to false)
+
+try: 
+    # list things_v1
+    api_response = api_instance.things_v1_list(acrossUserIds=acrossUserIds, deviceId=deviceId, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1List: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let acrossUserIds = true; // Boolean
+    let deviceId = deviceId_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1List(acrossUserIds, deviceId, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ + + + + +
Query parameters
+ + + + + + + + + + + + + + + + + +
NameDescription
across_user_ids + + +
+
+
+ + Boolean + + +
+If true, returns all the things +
+
+
+
+
device_id + + +
+
+
+ + String + + +
+The id of the device you want to filter +
+
+
+
+
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted things +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+
+
+
+
+
+

thingsV1Show

+

show things_v1

+
+
+
+

+

Returns the thing requested by the user

+

+
+
/v1/things/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://api-dev.arduino.cc/iot/v1/things/{id}?show_deleted="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Show(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Boolean showDeleted = true; // Boolean | If true, shows the soft deleted thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Show(id, showDeleted);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Show");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Boolean *showDeleted = true; // If true, shows the soft deleted thing (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// show things_v1
+[apiInstance thingsV1ShowWith:id
+    showDeleted:showDeleted
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var opts = {
+  'showDeleted': true // {Boolean} If true, shows the soft deleted thing
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1Show(id, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1ShowExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var showDeleted = true;  // Boolean | If true, shows the soft deleted thing (optional)  (default to false)
+
+            try
+            {
+                // show things_v1
+                ArduinoThing result = apiInstance.thingsV1Show(id, showDeleted);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1Show: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$showDeleted = true; // Boolean | If true, shows the soft deleted thing
+
+try {
+    $result = $api_instance->thingsV1Show($id, $showDeleted);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1Show: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $showDeleted = true; # Boolean | If true, shows the soft deleted thing
+
+eval { 
+    my $result = $api_instance->thingsV1Show(id => $id, showDeleted => $showDeleted);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1Show: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+showDeleted = true # Boolean | If true, shows the soft deleted thing (optional) (default to false)
+
+try: 
+    # show things_v1
+    api_response = api_instance.things_v1_show(id, showDeleted=showDeleted)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1Show: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let showDeleted = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1Show(id, showDeleted, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + + + +
Query parameters
+ + + + + + + + + +
NameDescription
show_deleted + + +
+
+
+ + Boolean + + +
+If true, shows the soft deleted thing +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

thingsV1Update

+

update things_v1

+
+
+
+

+

Updates a thing associated to the user

+

+
+
/v1/things/{id}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X POST "http://api-dev.arduino.cc/iot/v1/things/{id}?force="
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Thing thing = ; // Thing | 
+        Boolean force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Update(id, thing, force);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        Thing thing = ; // Thing | 
+        Boolean force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+        try {
+            ArduinoThing result = apiInstance.thingsV1Update(id, thing, force);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1Update");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+Thing *thing = ; // 
+Boolean *force = true; // If true, detach device from the other thing, and attach to this thing (optional) (default to false)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// update things_v1
+[apiInstance thingsV1UpdateWith:id
+    thing:thing
+    force:force
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var thing = ; // {Thing} 
+var opts = {
+  'force': true // {Boolean} If true, detach device from the other thing, and attach to this thing
+};
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1Update(id, thing, opts, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1UpdateExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var thing = new Thing(); // Thing | 
+            var force = true;  // Boolean | If true, detach device from the other thing, and attach to this thing (optional)  (default to false)
+
+            try
+            {
+                // update things_v1
+                ArduinoThing result = apiInstance.thingsV1Update(id, thing, force);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1Update: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$thing = ; // Thing | 
+$force = true; // Boolean | If true, detach device from the other thing, and attach to this thing
+
+try {
+    $result = $api_instance->thingsV1Update($id, $thing, $force);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1Update: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $thing = WWW::OPenAPIClient::Object::Thing->new(); # Thing | 
+my $force = true; # Boolean | If true, detach device from the other thing, and attach to this thing
+
+eval { 
+    my $result = $api_instance->thingsV1Update(id => $id, thing => $thing, force => $force);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1Update: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+thing =  # Thing | 
+force = true # Boolean | If true, detach device from the other thing, and attach to this thing (optional) (default to false)
+
+try: 
+    # update things_v1
+    api_response = api_instance.things_v1_update(id, thing, force=force)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1Update: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let thing = ; // Thing
+    let force = true; // Boolean
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1Update(id, thing, force, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
+ + +
Body parameters
+ + + + + + + + + +
NameDescription
thing * +

ThingPayload describes a thing

+ +
+
+ + +
Query parameters
+ + + + + + + + + +
NameDescription
force + + +
+
+
+ + Boolean + + +
+If true, detach device from the other thing, and attach to this thing +
+
+
+
+
+ +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+
+

thingsV1UpdateSketch

+

updateSketch things_v1

+
+
+
+

+

Update an existing thing sketch

+

+
+
/v1/things/{id}/sketch/{sketchId}
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PUT "http://api-dev.arduino.cc/iot/v1/things/{id}/sketch/{sketchId}"
+
+
+
import org.openapitools.client.*;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.model.*;
+import org.openapitools.client.api.ThingsV1Api;
+
+import java.io.File;
+import java.util.*;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ApiClient defaultClient = Configuration.getDefaultApiClient();
+        
+        // Configure OAuth2 access token for authorization: oauth2
+        OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
+        oauth2.setAccessToken("YOUR ACCESS TOKEN");
+
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        String sketchId = sketchId_example; // String | The id of the sketch
+        try {
+            ArduinoThing result = apiInstance.thingsV1UpdateSketch(id, sketchId);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1UpdateSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
import org.openapitools.client.api.ThingsV1Api;
+
+public class ThingsV1ApiExample {
+
+    public static void main(String[] args) {
+        ThingsV1Api apiInstance = new ThingsV1Api();
+        String id = id_example; // String | The id of the thing
+        String sketchId = sketchId_example; // String | The id of the sketch
+        try {
+            ArduinoThing result = apiInstance.thingsV1UpdateSketch(id, sketchId);
+            System.out.println(result);
+        } catch (ApiException e) {
+            System.err.println("Exception when calling ThingsV1Api#thingsV1UpdateSketch");
+            e.printStackTrace();
+        }
+    }
+}
+
+ +
+
Configuration *apiConfig = [Configuration sharedConfig];
+
+// Configure OAuth2 access token for authorization: (authentication scheme: oauth2)
+[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
+
+String *id = id_example; // The id of the thing (default to null)
+String *sketchId = sketchId_example; // The id of the sketch (default to null)
+
+ThingsV1Api *apiInstance = [[ThingsV1Api alloc] init];
+
+// updateSketch things_v1
+[apiInstance thingsV1UpdateSketchWith:id
+    sketchId:sketchId
+              completionHandler: ^(ArduinoThing output, NSError* error) {
+                            if (output) {
+                                NSLog(@"%@", output);
+                            }
+                            if (error) {
+                                NSLog(@"Error: %@", error);
+                            }
+                        }];
+
+
+ +
+
var IotApi = require('iot_api');
+var defaultClient = IotApi.ApiClient.instance;
+
+// Configure OAuth2 access token for authorization: oauth2
+var oauth2 = defaultClient.authentications['oauth2'];
+oauth2.accessToken = "YOUR ACCESS TOKEN"
+
+var api = new IotApi.ThingsV1Api()
+var id = id_example; // {String} The id of the thing
+var sketchId = sketchId_example; // {String} The id of the sketch
+
+var callback = function(error, data, response) {
+  if (error) {
+    console.error(error);
+  } else {
+    console.log('API called successfully. Returned data: ' + data);
+  }
+};
+api.thingsV1UpdateSketch(id, sketchId, callback);
+
+
+ + +
+
using System;
+using System.Diagnostics;
+using iot.Api;
+using iot.Client;
+using iot.Model;
+
+namespace Example
+{
+    public class thingsV1UpdateSketchExample
+    {
+        public void main()
+        {
+            
+            // Configure OAuth2 access token for authorization: oauth2
+            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
+
+            var apiInstance = new ThingsV1Api();
+            var id = id_example;  // String | The id of the thing (default to null)
+            var sketchId = sketchId_example;  // String | The id of the sketch (default to null)
+
+            try
+            {
+                // updateSketch things_v1
+                ArduinoThing result = apiInstance.thingsV1UpdateSketch(id, sketchId);
+                Debug.WriteLine(result);
+            }
+            catch (Exception e)
+            {
+                Debug.Print("Exception when calling ThingsV1Api.thingsV1UpdateSketch: " + e.Message );
+            }
+        }
+    }
+}
+
+
+ +
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+// Configure OAuth2 access token for authorization: oauth2
+OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
+
+$api_instance = new OpenAPITools\Client\Api\ThingsV1Api();
+$id = id_example; // String | The id of the thing
+$sketchId = sketchId_example; // String | The id of the sketch
+
+try {
+    $result = $api_instance->thingsV1UpdateSketch($id, $sketchId);
+    print_r($result);
+} catch (Exception $e) {
+    echo 'Exception when calling ThingsV1Api->thingsV1UpdateSketch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+ +
+
use Data::Dumper;
+use WWW::OPenAPIClient::Configuration;
+use WWW::OPenAPIClient::ThingsV1Api;
+
+# Configure OAuth2 access token for authorization: oauth2
+$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
+
+my $api_instance = WWW::OPenAPIClient::ThingsV1Api->new();
+my $id = id_example; # String | The id of the thing
+my $sketchId = sketchId_example; # String | The id of the sketch
+
+eval { 
+    my $result = $api_instance->thingsV1UpdateSketch(id => $id, sketchId => $sketchId);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling ThingsV1Api->thingsV1UpdateSketch: $@\n";
+}
+
+ +
+
from __future__ import print_statement
+import time
+import openapi_client
+from openapi_client.rest import ApiException
+from pprint import pprint
+
+# Configure OAuth2 access token for authorization: oauth2
+openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
+
+# create an instance of the API class
+api_instance = openapi_client.ThingsV1Api()
+id = id_example # String | The id of the thing (default to null)
+sketchId = sketchId_example # String | The id of the sketch (default to null)
+
+try: 
+    # updateSketch things_v1
+    api_response = api_instance.things_v1_update_sketch(id, sketchId)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling ThingsV1Api->thingsV1UpdateSketch: %s\n" % e)
+
+ +
+
extern crate ThingsV1Api;
+
+pub fn main() {
+    let id = id_example; // String
+    let sketchId = sketchId_example; // String
+
+    let mut context = ThingsV1Api::Context::default();
+    let result = client.thingsV1UpdateSketch(id, sketchId, &context).wait();
+    println!("{:?}", result);
+
+}
+
+
+
+ +

Scopes

+ + +
+ +

Parameters

+ +
Path parameters
+ + + + + + + + + + + + + +
NameDescription
id* + + +
+
+
+ + String + + +
+The id of the thing +
+
+
+ Required +
+
+
+
sketchId* + + +
+
+
+ + String + + +
+The id of the sketch +
+
+
+ Required +
+
+
+
+ + + + + +

Responses

+

+

+ + + + + + +
+
+
+ +
+ +
+
+

+

+ + + + + + +
+
+

+

+ + + + + + +
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+
+ + + + + + + + + + + + + +