![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
ThingSmartRequest is used for invoke Thing Cloud API. More...
#import <ThingSmartRequest.h>
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... | |
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:
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.
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.
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) cancel |
Cancel network request.
- (void) cancel |
Cancel network request.
- (void) cancel |
Cancel network request.
- (void) cancel |
Cancel network request.
+ (void) clearToken |
+ (void) clearToken |
+ (void) clearToken |
+ (void) clearToken |
+ (void) configAccessToken: | (NSString *) | token | |
refreshToken: | (NSString *) | refreshToken | |
config highway accessToken & refreshToken
token | token |
refreshToken | refreshToken |
+ (void) configAccessToken: | (NSString *) | token | |
refreshToken: | (NSString *) | refreshToken | |
config highway accessToken & refreshToken
token | token |
refreshToken | refreshToken |
+ (void) configAccessToken: | (NSString *) | token | |
refreshToken: | (NSString *) | refreshToken | |
config highway accessToken & refreshToken
token | token |
refreshToken | refreshToken |
+ (void) configAccessToken: | (NSString *) | token | |
refreshToken: | (NSString *) | refreshToken | |
config highway accessToken & refreshToken
token | token |
refreshToken | refreshToken |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
success | success |
failure | failure |
Provided by category ThingSmartRequest(TokenRefresh).
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
success | success |
failure | failure |
Provided by category ThingSmartRequest(TokenRefresh).
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
success | success |
failure | failure |
Provided by category ThingSmartRequest(TokenRefresh).
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
success | success |
failure | failure |
Provided by category ThingSmartRequest(TokenRefresh).
- (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 | |
- (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 | |
- (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 | |
- (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 | |
+ (void) registerIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) registerIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) registerIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) registerIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) removeAllCache |
Remove network cache.
+ (void) removeAllCache |
Remove network cache.
+ (void) removeAllCache |
Remove network cache.
+ (void) removeAllCache |
Remove network cache.
- (void) removeAllMergeRequest |
Remove all multiple api request.
Provided by category ThingSmartRequest(ApiMerge).
- (void) removeAllMergeRequest |
Remove all multiple api request.
Provided by category ThingSmartRequest(ApiMerge).
- (void) removeAllMergeRequest |
Remove all multiple api request.
Provided by category ThingSmartRequest(ApiMerge).
- (void) removeAllMergeRequest |
Remove all multiple api request.
Provided by category ThingSmartRequest(ApiMerge).
- (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).
- (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).
- (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).
- (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).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(Encryption).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(Encryption).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(Encryption).
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(Encryption).
+ (NSString *) requestToken |
+ (NSString *) requestToken |
+ (NSString *) requestToken |
+ (NSString *) requestToken |
- (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.
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
params | API params. |
httpMethod | HTTP request method |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
getData | Common params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
getData | Common params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
getData | Common params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
getData | Common params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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.
apiName | API name. |
postData | API params. |
version | API version. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
delegate | token invalid delegate |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
delegate | token invalid delegate |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
delegate | token invalid delegate |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
httpMethod | httpMethod |
delegate | token invalid delegate |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
commonParams | Common params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (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
customDomain | customDomain |
apiName | API name. |
params | API params. |
version | API version. |
httpMethod | httpMethod |
success | success |
failure | failure |
- (void) sendMergeRequestWithGetData: | (nullable NSDictionary *) | getData | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
getData | Common params. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithGetData: | (nullable NSDictionary *) | getData | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
getData | Common params. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithGetData: | (nullable NSDictionary *) | getData | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
getData | Common params. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithGetData: | (nullable NSDictionary *) | getData | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
getData | Common params. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithSuccess: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithSuccess: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithSuccess: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
- (void) sendMergeRequestWithSuccess: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send multiple api request.
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRequest(ApiMerge).
+ (void) unregisterIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) unregisterIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) unregisterIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |
+ (void) unregisterIntercepterClass: | (Class< ThingSmartRequestIntercepter >) | cls |