addIotWithHttpInfo method
Registers a new IoT
Registers a new IoT with a token
Note: This method returns the HTTP Response.
Parameters:
-
String token (required): IoT token
-
IotRequestBody iotRequestBody (required): IoT configuration
Implementation
Future<Response> addIotWithHttpInfo(
String token,
IotRequestBody iotRequestBody,
) async {
// ignore: prefer_const_declarations
final path = r'/lbcoreapi/iots/{token}'.replaceAll('{token}', token);
// ignore: prefer_final_locals
Object? postBody = iotRequestBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}