# IotApi.AppApi

All URIs are relative to *http://localhost/iotapi/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**classesAppGet**](AppApi.md#classesAppGet) | **GET** /classes/App | 查询App数据
[**classesAppIdDelete**](AppApi.md#classesAppIdDelete) | **DELETE** /classes/App/{id} | 通过ID删除App
[**classesAppIdGet**](AppApi.md#classesAppIdGet) | **GET** /classes/App/{id} | 通过ID获取App
[**classesAppIdPut**](AppApi.md#classesAppIdPut) | **PUT** /classes/App/{id} | 通过ID更新App
[**classesAppPost**](AppApi.md#classesAppPost) | **POST** /classes/App | 新增App记录


<a name="classesAppGet"></a>
# **classesAppGet**
> Componentsschemasresults classesAppGet(opts)

查询App数据

参考parse文档 https://docs.parseplatform.org/rest/guide/#queries,&lt;br/&gt;where支持：[$lt,$lte,$gt,$gte,$ne,$in,$nin,$exists,$select,$dontSelect,$all,$regex,$text]

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.AppApi();

var opts = { 
  'order': "order_example", // String | 排序方式, 负为降序, eg: score,-name
  'limit': 8.14, // Number | limit, 显示多少条记录，显示100条记录 eg:100
  'skip': 8.14, // Number | skip
  'keys': "keys_example", // String | 需要显示的字段, eg: username,email
  'include': "include_example", // String | include
  'where': "where_example" // String | 过滤条件，eg: {\"objectId\":{\"$in\":[\"BGS3BFgcZN\"]}}
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesAppGet(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **order** | **String**| 排序方式, 负为降序, eg: score,-name | [optional] 
 **limit** | **Number**| limit, 显示多少条记录，显示100条记录 eg:100 | [optional] 
 **skip** | **Number**| skip | [optional] 
 **keys** | **String**| 需要显示的字段, eg: username,email | [optional] 
 **include** | **String**| include | [optional] 
 **where** | **String**| 过滤条件，eg: {\&quot;objectId\&quot;:{\&quot;$in\&quot;:[\&quot;BGS3BFgcZN\&quot;]}} | [optional] 

### Return type

[**Componentsschemasresults**](Componentsschemasresults.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesAppIdDelete"></a>
# **classesAppIdDelete**
> classesAppIdDelete(id)

通过ID删除App

通过ID删除数据

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.AppApi();

var id = "id_example"; // String | 删除记录的ID


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.classesAppIdDelete(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 删除记录的ID | 

### Return type

null (empty response body)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesAppIdGet"></a>
# **classesAppIdGet**
> ComponentsschemasApp classesAppIdGet(id)

通过ID获取App

通过ID获取App

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.AppApi();

var id = "id_example"; // String | 通过ID获取App


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesAppIdGet(id, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 通过ID获取App | 

### Return type

[**ComponentsschemasApp**](ComponentsschemasApp.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesAppIdPut"></a>
# **classesAppIdPut**
> Componentsschemasupdatesuccess classesAppIdPut(id, body)

通过ID更新App

通过ID更新记录

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.AppApi();

var id = "id_example"; // String | 更新记录的ID

var body = new IotApi.AddApp(); // AddApp | 数据更新的内容.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesAppIdPut(id, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| 更新记录的ID | 
 **body** | [**AddApp**](AddApp.md)| 数据更新的内容. | 

### Return type

[**Componentsschemasupdatesuccess**](Componentsschemasupdatesuccess.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="classesAppPost"></a>
# **classesAppPost**
> Componentsschemascreatesuccess classesAppPost(body)

新增App记录

新增一条App记录

### Example
```javascript
var IotApi = require('iot_api');
var defaultClient = IotApi.ApiClient.instance;

// Configure API key authorization: APIKeyHeader
var APIKeyHeader = defaultClient.authentications['APIKeyHeader'];
APIKeyHeader.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyHeader.apiKeyPrefix = 'Token';

var apiInstance = new IotApi.AppApi();

var body = new IotApi.AddApp(); // AddApp | object that needs to be added to the store


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.classesAppPost(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**AddApp**](AddApp.md)| object that needs to be added to the store | 

### Return type

[**Componentsschemascreatesuccess**](Componentsschemascreatesuccess.md)

### Authorization

[APIKeyHeader](../README.md#APIKeyHeader)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

