Tuya iOS Smart Life App SDK 5.15.0
ThingSmartRequest Class Reference

ThingSmartRequest is used for invoke Thing Cloud API. More...

#import <ThingSmartRequest.h>

Inheritance diagram for ThingSmartRequest:
TSODValueAddedServicesService TSODValueAddedServicesService ThingApiMergeService ThingApiMergeService ThingApiMergeService ThingApiMergeService ThingDiyHomeExtention ThingDiyHomeExtention ThingDiyHomeExtention ThingDiyHomeExtention ThingSmartCloudService ThingSmartCloudService ThingSmartLockApi ThingSmartLockApi

Instance Methods

(void) - highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:version:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:commonParams:httpMethod:success:failure:
 
(void) - requestWithApiName:postData:version:success:failure:
 
(void) - requestWithApiName:postData:getData:version:success:failure:
 
(void) - cancel
 Cancel network request. More...
 
(void) - highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:version:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:commonParams:httpMethod:success:failure:
 
(void) - requestWithApiName:postData:version:success:failure:
 
(void) - requestWithApiName:postData:getData:version:success:failure:
 
(void) - cancel
 Cancel network request. More...
 
(void) - highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:version:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:commonParams:httpMethod:success:failure:
 
(void) - requestWithApiName:postData:version:success:failure:
 
(void) - requestWithApiName:postData:getData:version:success:failure:
 
(void) - cancel
 Cancel network request. More...
 
(void) - highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:version:httpMethod:success:failure:
 
(void) - requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:version:httpMethod:success:failure:
 
(void) - requestWithApiName:params:commonParams:httpMethod:success:failure:
 
(void) - requestWithApiName:postData:version:success:failure:
 
(void) - requestWithApiName:postData:getData:version:success:failure:
 
(void) - cancel
 Cancel network request. More...
 
(void) - addMergeRequestWithApiName:postData:version:success:failure:
 
(void) - addMergeRequestWithApiName:postData:version:success:failure:
 
(void) - addMergeRequestWithApiName:postData:version:success:failure:
 
(void) - addMergeRequestWithApiName:postData:version:success:failure:
 
(void) - sendMergeRequestWithSuccess:failure:
 
(void) - sendMergeRequestWithSuccess:failure:
 
(void) - sendMergeRequestWithSuccess:failure:
 
(void) - sendMergeRequestWithSuccess:failure:
 
(void) - sendMergeRequestWithGetData:success:failure:
 
(void) - sendMergeRequestWithGetData:success:failure:
 
(void) - sendMergeRequestWithGetData:success:failure:
 
(void) - sendMergeRequestWithGetData:success:failure:
 
(void) - removeAllMergeRequest
 Remove all multiple api request. More...
 
(void) - removeAllMergeRequest
 Remove all multiple api request. More...
 
(void) - removeAllMergeRequest
 Remove all multiple api request. More...
 
(void) - removeAllMergeRequest
 Remove all multiple api request. More...
 
(void) - requestPostDataEncryptWithApiName:postData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:postData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:postData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:postData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure:
 
(void) - requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure:
 
(void) - customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure:
 
(void) - customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure:
 
(void) - customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure:
 
(void) - customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure:
 

Class Methods

(void) + registerIntercepterClass:
 
(void) + unregisterIntercepterClass:
 
(void) + configAccessToken:refreshToken:
 
(void) + clearToken
 
(NSString *) + requestToken
 
(void) + removeAllCache
 Remove network cache. More...
 
(void) + registerIntercepterClass:
 
(void) + unregisterIntercepterClass:
 
(void) + configAccessToken:refreshToken:
 
(void) + clearToken
 
(NSString *) + requestToken
 
(void) + removeAllCache
 Remove network cache. More...
 
(void) + registerIntercepterClass:
 
(void) + unregisterIntercepterClass:
 
(void) + configAccessToken:refreshToken:
 
(void) + clearToken
 
(NSString *) + requestToken
 
(void) + removeAllCache
 Remove network cache. More...
 
(void) + registerIntercepterClass:
 
(void) + unregisterIntercepterClass:
 
(void) + configAccessToken:refreshToken:
 
(void) + clearToken
 
(NSString *) + requestToken
 
(void) + removeAllCache
 Remove network cache. More...
 

Detailed Description

ThingSmartRequest is used for invoke Thing Cloud API.

All of the Thing Cloud API (atop) is made from this class.

Usually, a request need these params:

  • API name.
  • API version.
  • API params (aka postData). A serializable dictionary object.
  • Common params (aka getData). A serializable dictionary object. Optional.

And a response will be back through success or failure callback. A success callback will give any kind of object, which depends on the specific API. An error callback will give an error object, error.userInfo[NSLocalizedFailureReasonErrorKey] is for Thing error code, error.localizedDescription is for detailed reasons.

Warning
The error.localizedDescription is not recommend for display, please handle every possible error types and prepare the error messages for your own.

Definition at line 61 of file ThingSmartRequest.h.

Method Documentation

◆ addMergeRequestWithApiName:postData:version:success:failure: [1/4]

- (void) addMergeRequestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Invoke multiple api in one network request.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ addMergeRequestWithApiName:postData:version:success:failure: [2/4]

- (void) addMergeRequestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Invoke multiple api in one network request.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ addMergeRequestWithApiName:postData:version:success:failure: [3/4]

- (void) addMergeRequestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Invoke multiple api in one network request.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ addMergeRequestWithApiName:postData:version:success:failure: [4/4]

- (void) addMergeRequestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Invoke multiple api in one network request.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ cancel [1/4]

- (void) cancel

Cancel network request.

◆ cancel [2/4]

- (void) cancel

Cancel network request.

◆ cancel [3/4]

- (void) cancel

Cancel network request.

◆ cancel [4/4]

- (void) cancel

Cancel network request.

◆ clearToken [1/4]

+ (void) clearToken

◆ clearToken [2/4]

+ (void) clearToken

◆ clearToken [3/4]

+ (void) clearToken

◆ clearToken [4/4]

+ (void) clearToken

◆ configAccessToken:refreshToken: [1/4]

+ (void) configAccessToken: (NSString *)  token
refreshToken: (NSString *)  refreshToken 

config highway accessToken & refreshToken

Parameters
tokentoken
refreshTokenrefreshToken

◆ configAccessToken:refreshToken: [2/4]

+ (void) configAccessToken: (NSString *)  token
refreshToken: (NSString *)  refreshToken 

config highway accessToken & refreshToken

Parameters
tokentoken
refreshTokenrefreshToken

◆ configAccessToken:refreshToken: [3/4]

+ (void) configAccessToken: (NSString *)  token
refreshToken: (NSString *)  refreshToken 

config highway accessToken & refreshToken

Parameters
tokentoken
refreshTokenrefreshToken

◆ configAccessToken:refreshToken: [4/4]

+ (void) configAccessToken: (NSString *)  token
refreshToken: (NSString *)  refreshToken 

config highway accessToken & refreshToken

Parameters
tokentoken
refreshTokenrefreshToken

◆ customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure: [1/4]

- (void) customTokenRefreshWithDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Custom Token Refresh

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
successsuccess
failurefailure

Provided by category ThingSmartRequest(TokenRefresh).

◆ customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure: [2/4]

- (void) customTokenRefreshWithDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Custom Token Refresh

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
successsuccess
failurefailure

Provided by category ThingSmartRequest(TokenRefresh).

◆ customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure: [3/4]

- (void) customTokenRefreshWithDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Custom Token Refresh

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
successsuccess
failurefailure

Provided by category ThingSmartRequest(TokenRefresh).

◆ customTokenRefreshWithDomain:apiName:params:commonParams:httpMethod:success:failure: [4/4]

- (void) customTokenRefreshWithDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Custom Token Refresh

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
successsuccess
failurefailure

Provided by category ThingSmartRequest(TokenRefresh).

◆ highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure: [1/4]

- (void) highwayRequestWithDomain: (nullable NSString *)  domain
pathName: (NSString *)  pathName
headerParams: (nullable NSDictionary *)  headerParams
queryParams: (nullable NSDictionary *)  queryParams
bodyParams: (nullable NSDictionary *)  bodyParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

◆ highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure: [2/4]

- (void) highwayRequestWithDomain: (nullable NSString *)  domain
pathName: (NSString *)  pathName
headerParams: (nullable NSDictionary *)  headerParams
queryParams: (nullable NSDictionary *)  queryParams
bodyParams: (nullable NSDictionary *)  bodyParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

◆ highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure: [3/4]

- (void) highwayRequestWithDomain: (nullable NSString *)  domain
pathName: (NSString *)  pathName
headerParams: (nullable NSDictionary *)  headerParams
queryParams: (nullable NSDictionary *)  queryParams
bodyParams: (nullable NSDictionary *)  bodyParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

◆ highwayRequestWithDomain:pathName:headerParams:queryParams:bodyParams:httpMethod:success:failure: [4/4]

- (void) highwayRequestWithDomain: (nullable NSString *)  domain
pathName: (NSString *)  pathName
headerParams: (nullable NSDictionary *)  headerParams
queryParams: (nullable NSDictionary *)  queryParams
bodyParams: (nullable NSDictionary *)  bodyParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

◆ registerIntercepterClass: [1/4]

+ (void) registerIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ registerIntercepterClass: [2/4]

+ (void) registerIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ registerIntercepterClass: [3/4]

+ (void) registerIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ registerIntercepterClass: [4/4]

+ (void) registerIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ removeAllCache [1/4]

+ (void) removeAllCache

Remove network cache.

◆ removeAllCache [2/4]

+ (void) removeAllCache

Remove network cache.

◆ removeAllCache [3/4]

+ (void) removeAllCache

Remove network cache.

◆ removeAllCache [4/4]

+ (void) removeAllCache

Remove network cache.

◆ removeAllMergeRequest [1/4]

- (void) removeAllMergeRequest

Remove all multiple api request.

Provided by category ThingSmartRequest(ApiMerge).

◆ removeAllMergeRequest [2/4]

- (void) removeAllMergeRequest

Remove all multiple api request.

Provided by category ThingSmartRequest(ApiMerge).

◆ removeAllMergeRequest [3/4]

- (void) removeAllMergeRequest

Remove all multiple api request.

Provided by category ThingSmartRequest(ApiMerge).

◆ removeAllMergeRequest [4/4]

- (void) removeAllMergeRequest

Remove all multiple api request.

Provided by category ThingSmartRequest(ApiMerge).

◆ requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure: [1/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
parameter: (nullable NSDictionary *)  param
voiceData: (nullable NSData *)  data
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartRequest(Speech).

◆ requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure: [2/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
parameter: (nullable NSDictionary *)  param
voiceData: (nullable NSData *)  data
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartRequest(Speech).

◆ requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure: [3/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
parameter: (nullable NSDictionary *)  param
voiceData: (nullable NSData *)  data
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartRequest(Speech).

◆ requestPostDataEncryptWithApiName:parameter:voiceData:version:success:failure: [4/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
parameter: (nullable NSDictionary *)  param
voiceData: (nullable NSData *)  data
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Provided by category ThingSmartRequest(Speech).

◆ requestPostDataEncryptWithApiName:postData:version:success:failure: [1/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API with post data encrypt.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(Encryption).

◆ requestPostDataEncryptWithApiName:postData:version:success:failure: [2/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API with post data encrypt.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(Encryption).

◆ requestPostDataEncryptWithApiName:postData:version:success:failure: [3/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API with post data encrypt.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(Encryption).

◆ requestPostDataEncryptWithApiName:postData:version:success:failure: [4/4]

- (void) requestPostDataEncryptWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API with post data encrypt.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(Encryption).

◆ requestToken [1/4]

+ (NSString *) requestToken

◆ requestToken [2/4]

+ (NSString *) requestToken

◆ requestToken [3/4]

+ (NSString *) requestToken

◆ requestToken [4/4]

+ (NSString *) requestToken

◆ requestWithApiName:params:commonParams:httpMethod:success:failure: [1/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:commonParams:httpMethod:success:failure: [2/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:commonParams:httpMethod:success:failure: [3/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:commonParams:httpMethod:success:failure: [4/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:version:httpMethod:success:failure: [1/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:version:httpMethod:success:failure: [2/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:version:httpMethod:success:failure: [3/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:params:version:httpMethod:success:failure: [4/4]

- (void) requestWithApiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
paramsAPI params.
httpMethodHTTP request method
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:getData:version:success:failure: [1/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
getData: (nullable NSDictionary *)  getData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
getDataCommon params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:getData:version:success:failure: [2/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
getData: (nullable NSDictionary *)  getData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
getDataCommon params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:getData:version:success:failure: [3/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
getData: (nullable NSDictionary *)  getData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
getDataCommon params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:getData:version:success:failure: [4/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
getData: (nullable NSDictionary *)  getData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
getDataCommon params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:version:success:failure: [1/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:version:success:failure: [2/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:version:success:failure: [3/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithApiName:postData:version:success:failure: [4/4]

- (void) requestWithApiName: (NSString *)  apiName
postData: (nullable NSDictionary *)  postData
version: (NSString *)  version
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Network request for Thing server API.

Parameters
apiNameAPI name.
postDataAPI params.
versionAPI version.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure: [1/4]

- (void) requestWithCustomDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
tokenDelegate: (id< ThingSmartTokenRefreshDelegate >)  delegate
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
delegatetoken invalid delegate
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure: [2/4]

- (void) requestWithCustomDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
tokenDelegate: (id< ThingSmartTokenRefreshDelegate >)  delegate
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
delegatetoken invalid delegate
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure: [3/4]

- (void) requestWithCustomDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
tokenDelegate: (id< ThingSmartTokenRefreshDelegate >)  delegate
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
delegatetoken invalid delegate
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:httpMethod:tokenDelegate:success:failure: [4/4]

- (void) requestWithCustomDomain: (nullable NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (nullable NSDictionary *)  commonParams
httpMethod: (NSString *)  httpMethod
tokenDelegate: (id< ThingSmartTokenRefreshDelegate >)  delegate
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
httpMethodhttpMethod
delegatetoken invalid delegate
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure: [1/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (NSDictionary *)  commonParams
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure: [2/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (NSDictionary *)  commonParams
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure: [3/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (NSDictionary *)  commonParams
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:commonParams:version:httpMethod:success:failure: [4/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
commonParams: (NSDictionary *)  commonParams
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
commonParamsCommon params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:version:httpMethod:success:failure: [1/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:version:httpMethod:success:failure: [2/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:version:httpMethod:success:failure: [3/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ requestWithCustomDomain:apiName:params:version:httpMethod:success:failure: [4/4]

- (void) requestWithCustomDomain: (NSString *)  customDomain
apiName: (NSString *)  apiName
params: (nullable NSDictionary *)  params
version: (nullable NSString *)  version
httpMethod: (NSString *)  httpMethod
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

request Api

Parameters
customDomaincustomDomain
apiNameAPI name.
paramsAPI params.
versionAPI version.
httpMethodhttpMethod
successsuccess
failurefailure

◆ sendMergeRequestWithGetData:success:failure: [1/4]

- (void) sendMergeRequestWithGetData: (nullable NSDictionary *)  getData
success: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
getDataCommon params.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithGetData:success:failure: [2/4]

- (void) sendMergeRequestWithGetData: (nullable NSDictionary *)  getData
success: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
getDataCommon params.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithGetData:success:failure: [3/4]

- (void) sendMergeRequestWithGetData: (nullable NSDictionary *)  getData
success: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
getDataCommon params.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithGetData:success:failure: [4/4]

- (void) sendMergeRequestWithGetData: (nullable NSDictionary *)  getData
success: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
getDataCommon params.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithSuccess:failure: [1/4]

- (void) sendMergeRequestWithSuccess: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithSuccess:failure: [2/4]

- (void) sendMergeRequestWithSuccess: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithSuccess:failure: [3/4]

- (void) sendMergeRequestWithSuccess: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ sendMergeRequestWithSuccess:failure: [4/4]

- (void) sendMergeRequestWithSuccess: (nullable ThingSuccessList success
failure: (nullable ThingFailureError failure 

Send multiple api request.

Parameters
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRequest(ApiMerge).

◆ unregisterIntercepterClass: [1/4]

+ (void) unregisterIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ unregisterIntercepterClass: [2/4]

+ (void) unregisterIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ unregisterIntercepterClass: [3/4]

+ (void) unregisterIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

◆ unregisterIntercepterClass: [4/4]

+ (void) unregisterIntercepterClass: (Class< ThingSmartRequestIntercepter >)  cls

The documentation for this class was generated from the following files: