Tuya iOS Smart Life App SDK 5.15.0
ThingSmartUser Class Reference

#import <ThingSmartUser.h>

Inheritance diagram for ThingSmartUser:

Instance Methods

(void) - sendVerifyCodeWithUserName:region:countryCode:type:success:failure:
 
(void) - loginWithMobile:countryCode:code:success:failure:
 
(void) - sendBindVerifyCode:phoneNumber:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:success:failure:
 
(void) - mobileBinding:phoneNumber:code:success:failure:
 
(void) - changBindAccount:countryCode:code:success:failure:
 
(void) - registerByPhone:phoneNumber:password:code:success:failure:
 
(void) - loginByPhone:phoneNumber:password:success:failure:
 
(void) - resetPasswordByPhone:phoneNumber:newPassword:code:success:failure:
 
(void) - loginByEmail:email:password:success:failure:
 
(void) - resetPasswordByEmail:email:newPassword:code:success:failure:
 
(void) - registerByEmail:email:password:code:success:failure:
 
(void) - loginWithEmail:countryCode:code:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:success:failure:
 
(void) - bindEmail:withCountryCode:code:sId:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:createHome:success:failure:
 
(void) - loginByQQ:userId:accessToken:success:failure:
 
(void) - loginByWechat:code:success:failure:
 
(void) - loginByFacebook:token:success:failure:
 
(void) - loginByTwitter:key:secret:success:failure:
 
(void) - loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure:
 
(void) - loginOut:failure:
 
(void) - updateNickname:success:failure:
 
(void) - updateHeadIcon:success:failure:
 
(void) - updateAvatarWithImageUrl:success:failure:
 
(void) - updateUserInfo:failure:
 
(void) - updateTimeZoneWithTimeZoneId:success:failure:
 
(void) - updateTempUnitWithTempUnit:success:failure:
 
(void) - cancelAccount:failure:
 
(BOOL) - checkPasswordFormat:withPasswordRegularType:
 
(void) - loginWithTicket:success:failure:
 
(void) - sendVerifyCode:account:captchaContext:success:failure:
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure:
 
(void) - resetWithUserInfo:source:
 
(void) - clearUserInfo
 Clear user data. More...
 
(void) - cancelRequest
 Cancels the network request. More...
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:success:failure:
 
(void) - loginWithMobile:countryCode:code:success:failure:
 
(void) - sendBindVerifyCode:phoneNumber:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:success:failure:
 
(void) - mobileBinding:phoneNumber:code:success:failure:
 
(void) - changBindAccount:countryCode:code:success:failure:
 
(void) - registerByPhone:phoneNumber:password:code:success:failure:
 
(void) - loginByPhone:phoneNumber:password:success:failure:
 
(void) - resetPasswordByPhone:phoneNumber:newPassword:code:success:failure:
 
(void) - loginByEmail:email:password:success:failure:
 
(void) - resetPasswordByEmail:email:newPassword:code:success:failure:
 
(void) - registerByEmail:email:password:code:success:failure:
 
(void) - loginWithEmail:countryCode:code:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:success:failure:
 
(void) - bindEmail:withCountryCode:code:sId:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:createHome:success:failure:
 
(void) - loginByQQ:userId:accessToken:success:failure:
 
(void) - loginByWechat:code:success:failure:
 
(void) - loginByFacebook:token:success:failure:
 
(void) - loginByTwitter:key:secret:success:failure:
 
(void) - loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure:
 
(void) - loginOut:failure:
 
(void) - updateNickname:success:failure:
 
(void) - updateHeadIcon:success:failure:
 
(void) - updateAvatarWithImageUrl:success:failure:
 
(void) - updateUserInfo:failure:
 
(void) - updateTimeZoneWithTimeZoneId:success:failure:
 
(void) - updateTempUnitWithTempUnit:success:failure:
 
(void) - cancelAccount:failure:
 
(BOOL) - checkPasswordFormat:withPasswordRegularType:
 
(void) - loginWithTicket:success:failure:
 
(void) - sendVerifyCode:account:captchaContext:success:failure:
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure:
 
(void) - resetWithUserInfo:source:
 
(void) - clearUserInfo
 Clear user data. More...
 
(void) - cancelRequest
 Cancels the network request. More...
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:success:failure:
 
(void) - loginWithMobile:countryCode:code:success:failure:
 
(void) - sendBindVerifyCode:phoneNumber:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:success:failure:
 
(void) - mobileBinding:phoneNumber:code:success:failure:
 
(void) - changBindAccount:countryCode:code:success:failure:
 
(void) - registerByPhone:phoneNumber:password:code:success:failure:
 
(void) - loginByPhone:phoneNumber:password:success:failure:
 
(void) - resetPasswordByPhone:phoneNumber:newPassword:code:success:failure:
 
(void) - loginByEmail:email:password:success:failure:
 
(void) - resetPasswordByEmail:email:newPassword:code:success:failure:
 
(void) - registerByEmail:email:password:code:success:failure:
 
(void) - loginWithEmail:countryCode:code:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:success:failure:
 
(void) - bindEmail:withCountryCode:code:sId:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:createHome:success:failure:
 
(void) - loginByQQ:userId:accessToken:success:failure:
 
(void) - loginByWechat:code:success:failure:
 
(void) - loginByFacebook:token:success:failure:
 
(void) - loginByTwitter:key:secret:success:failure:
 
(void) - loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure:
 
(void) - loginOut:failure:
 
(void) - updateNickname:success:failure:
 
(void) - updateHeadIcon:success:failure:
 
(void) - updateAvatarWithImageUrl:success:failure:
 
(void) - updateUserInfo:failure:
 
(void) - updateTimeZoneWithTimeZoneId:success:failure:
 
(void) - updateTempUnitWithTempUnit:success:failure:
 
(void) - cancelAccount:failure:
 
(BOOL) - checkPasswordFormat:withPasswordRegularType:
 
(void) - loginWithTicket:success:failure:
 
(void) - sendVerifyCode:account:captchaContext:success:failure:
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure:
 
(void) - resetWithUserInfo:source:
 
(void) - clearUserInfo
 Clear user data. More...
 
(void) - cancelRequest
 Cancels the network request. More...
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:success:failure:
 
(void) - loginWithMobile:countryCode:code:success:failure:
 
(void) - sendBindVerifyCode:phoneNumber:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:success:failure:
 
(void) - mobileBinding:phoneNumber:code:success:failure:
 
(void) - changBindAccount:countryCode:code:success:failure:
 
(void) - registerByPhone:phoneNumber:password:code:success:failure:
 
(void) - loginByPhone:phoneNumber:password:success:failure:
 
(void) - resetPasswordByPhone:phoneNumber:newPassword:code:success:failure:
 
(void) - loginByEmail:email:password:success:failure:
 
(void) - resetPasswordByEmail:email:newPassword:code:success:failure:
 
(void) - registerByEmail:email:password:code:success:failure:
 
(void) - loginWithEmail:countryCode:code:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:success:failure:
 
(void) - bindEmail:withCountryCode:code:sId:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:createHome:success:failure:
 
(void) - loginByQQ:userId:accessToken:success:failure:
 
(void) - loginByWechat:code:success:failure:
 
(void) - loginByFacebook:token:success:failure:
 
(void) - loginByTwitter:key:secret:success:failure:
 
(void) - loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure:
 
(void) - loginOut:failure:
 
(void) - updateNickname:success:failure:
 
(void) - updateHeadIcon:success:failure:
 
(void) - updateAvatarWithImageUrl:success:failure:
 
(void) - updateUserInfo:failure:
 
(void) - updateTimeZoneWithTimeZoneId:success:failure:
 
(void) - updateTempUnitWithTempUnit:success:failure:
 
(void) - cancelAccount:failure:
 
(BOOL) - checkPasswordFormat:withPasswordRegularType:
 
(void) - loginWithTicket:success:failure:
 
(void) - sendVerifyCode:account:captchaContext:success:failure:
 
(void) - sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure:
 
(void) - sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure:
 
(void) - sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure:
 
(void) - resetWithUserInfo:source:
 
(void) - clearUserInfo
 Clear user data. More...
 
(void) - cancelRequest
 Cancels the network request. More...
 
(void) - registerAnonymousWithCountryCode:success:failure:
 
(void) - registerAnonymousWithCountryCode:success:failure:
 
(void) - registerAnonymousWithCountryCode:success:failure:
 
(void) - registerAnonymousWithCountryCode:success:failure:
 
(void) - deleteAnonymousAccountWithSuccess:failure:
 
(void) - deleteAnonymousAccountWithSuccess:failure:
 
(void) - deleteAnonymousAccountWithSuccess:failure:
 
(void) - deleteAnonymousAccountWithSuccess:failure:
 
(void) - usernameBindingWithCountryCode:userName:code:password:success:failure:
 
(void) - usernameBindingWithCountryCode:userName:code:password:success:failure:
 
(void) - usernameBindingWithCountryCode:userName:code:password:success:failure:
 
(void) - usernameBindingWithCountryCode:userName:code:password:success:failure:
 
(void) - sendVerifyCode:phoneNumber:type:success:failure:
 
(void) - sendVerifyCode:phoneNumber:type:success:failure:
 
(void) - sendVerifyCode:phoneNumber:type:success:failure:
 
(void) - sendVerifyCode:phoneNumber:type:success:failure:
 
(void) - registerAnonymousWithCountryCode:userName:success:failure:
 
(void) - registerAnonymousWithCountryCode:userName:success:failure:
 
(void) - registerAnonymousWithCountryCode:userName:success:failure:
 
(void) - registerAnonymousWithCountryCode:userName:success:failure:
 
(void) - registerByEmail:email:password:success:failure:
 
(void) - registerByEmail:email:password:success:failure:
 
(void) - registerByEmail:email:password:success:failure:
 
(void) - registerByEmail:email:password:success:failure:
 
(void) - login:phoneNumber:code:success:failure:
 
(void) - login:phoneNumber:code:success:failure:
 
(void) - login:phoneNumber:code:success:failure:
 
(void) - login:phoneNumber:code:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:createHome:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:createHome:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:createHome:success:failure:
 
(void) - loginOrRegisterByPhone:uid:password:createHome:success:failure:
 
(void) - registerByUid:password:countryCode:success:failure:
 
(void) - registerByUid:password:countryCode:success:failure:
 
(void) - registerByUid:password:countryCode:success:failure:
 
(void) - registerByUid:password:countryCode:success:failure:
 
(void) - loginByUid:password:countryCode:success:failure:
 
(void) - loginByUid:password:countryCode:success:failure:
 
(void) - loginByUid:password:countryCode:success:failure:
 
(void) - loginByUid:password:countryCode:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:success:failure:
 
(void) - loginOrRegisterWithCountryCode:uid:password:success:failure:
 
(void) - sendVerifyCodeByEmail:email:success:failure:
 
(void) - sendVerifyCodeByEmail:email:success:failure:
 
(void) - sendVerifyCodeByEmail:email:success:failure:
 
(void) - sendVerifyCodeByEmail:email:success:failure:
 
(void) - sendVerifyCodeByRegisterEmail:email:success:failure:
 
(void) - sendVerifyCodeByRegisterEmail:email:success:failure:
 
(void) - sendVerifyCodeByRegisterEmail:email:success:failure:
 
(void) - sendVerifyCodeByRegisterEmail:email:success:failure:
 
(void) - requestHighwayTokenWithSuccess:failure:
 
(void) - requestHighwayTokenWithSuccess:failure:
 
(void) - requestHighwayTokenWithSuccess:failure:
 
(void) - requestHighwayTokenWithSuccess:failure:
 
(void) - loginByQRcode:success:failure:
 
(void) - loginByQRcode:success:failure:
 
(void) - loginByQRcode:success:failure:
 
(void) - loginByQRcode:success:failure:
 
(void) - userInfo:success:failure:
 
(void) - userInfo:success:failure:
 
(void) - userInfo:success:failure:
 
(void) - userInfo:success:failure:
 
(void) - regionListWithCountryCode:success:failure:
 
(void) - regionListWithCountryCode:success:failure:
 
(void) - regionListWithCountryCode:success:failure:
 
(void) - regionListWithCountryCode:success:failure:
 
(NSString *) - getDefaultRegionWithCountryCode:
 
(NSString *) - getDefaultRegionWithCountryCode:
 
(NSString *) - getDefaultRegionWithCountryCode:
 
(NSString *) - getDefaultRegionWithCountryCode:
 
(NSDictionary *) - getDefaultDomain
 
(NSDictionary *) - getDefaultDomain
 
(NSDictionary *) - getDefaultDomain
 
(NSDictionary *) - getDefaultDomain
 
(void) - checkCodeWithUserName:region:countryCode:code:type:success:failure:
 
(void) - checkCodeWithUserName:region:countryCode:code:type:success:failure:
 
(void) - checkCodeWithUserName:region:countryCode:code:type:success:failure:
 
(void) - checkCodeWithUserName:region:countryCode:code:type:success:failure:
 
(void) - registerWithUserName:region:countryCode:code:password:success:failure:
 
(void) - registerWithUserName:region:countryCode:code:password:success:failure:
 
(void) - registerWithUserName:region:countryCode:code:password:success:failure:
 
(void) - registerWithUserName:region:countryCode:code:password:success:failure:
 
(void) - switchUserRegion:success:failure:
 
(void) - switchUserRegion:success:failure:
 
(void) - switchUserRegion:success:failure:
 
(void) - switchUserRegion:success:failure:
 
(void) - getWhiteListWhoCanSendMobileCodeSuccess:failure:
 
(void) - getWhiteListWhoCanSendMobileCodeSuccess:failure:
 
(void) - getWhiteListWhoCanSendMobileCodeSuccess:failure:
 
(void) - getWhiteListWhoCanSendMobileCodeSuccess:failure:
 
(BOOL) - updateApplicationContext:
 
(BOOL) - updateApplicationContext:
 
(BOOL) - updateApplicationContext:
 
(BOOL) - updateApplicationContext:
 
(void) - didReceiveApplicationContext:
 
(void) - didReceiveApplicationContext:
 
(void) - didReceiveApplicationContext:
 
(void) - didReceiveApplicationContext:
 

Class Methods

(instancetype) + sharedInstance
 Returns the singleton of the class. More...
 
(instancetype) + sharedInstance
 Returns the singleton of the class. More...
 
(instancetype) + sharedInstance
 Returns the singleton of the class. More...
 
(instancetype) + sharedInstance
 Returns the singleton of the class. More...
 

Properties

NSString * sid
 The session ID. More...
 
NSString * uid
 The user ID. More...
 
NSString * headIconUrl
 The avatar. More...
 
NSString * nickname
 The nickname. More...
 
NSString * userName
 The username. If the account is registered with a mobile phone number, the value is set to the mobile phone number. If the account is registered with an email, the value is set to the email. More...
 
NSString * phoneNumber
 The mobile phone number. More...
 
NSString * email
 The email. More...
 
NSString * countryCode
 The country code. For example, 86 means China, 1 means America. More...
 
BOOL isLogin
 The login status. More...
 
NSString * regionCode
 The region code of the current account. For example, AY means China, AZ means America, and EU means Europe. More...
 
NSDictionary * domain
 The API domains of the current account region. More...
 
NSString * timezoneId
 The timezone ID, such as Asia/Shanghai. More...
 
NSString * partnerIdentity
 
NSString * mbHost
 The MQTT host. More...
 
NSString * gwHost
 
NSInteger port
 The MQTT port. More...
 
BOOL useSSL
 Specifies whether to enable SSL. More...
 
NSString * quicHost
 The QUIC host. More...
 
NSInteger quicPort
 The QUIC port. More...
 
BOOL useQUIC
 Specifies whether to enable QUIC. More...
 
NSInteger tempUnit
 The temperature unit. For example, 1 means °C and 2 means °F. More...
 
ThingRegType regFrom
 The user registration type. More...
 
NSString * snsNickname
 The nickname of the SNS account. More...
 
NSString * ecode
 
NSInteger userType
 The user type. More...
 
NSDictionary * extras
 Extra parameters. More...
 
NSString * userAlias
 
ThingSmartBleMeshModelmeshModel
 
ThingSmartBleMeshmesh
 

Detailed Description

Main:

  • Email
  • Phone Third-party:
  • QQ
  • Weibo
  • WeChat
  • Facebook
  • Twitter
  • Google
  • AppleID Other:
  • UID (for advance usage)
  • Anonymous
  • QRCode

For email and phone account, usually we need to send a verify code to continue the following steps.

For uid account, it is designed for developers who already has the account system for their own. The developer can register the uid account without any verification. So please keep your username/password in safe place.

Warning
Thing server have many regions over the world, China/Europe/America, and so on. Account system between regions are separated. When user is not logged in, Thing SDK will select a nearest region for the initial API request. During the register step, Thing Cloud will see the account country code and create it in the right region. After the register or login step, the API request will be sent to the right region. So, the country code is part of the account username, please do not ignore it.

Definition at line 97 of file ThingSmartUser.h.

Method Documentation

◆ bindEmail:withCountryCode:code:sId:success:failure: [1/4]

- (void) bindEmail: (NSString *)  email
withCountryCode: (NSString *)  countryCode
code: (NSString *)  code
sId: (NSString *)  sId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds an email.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification Code.
sIdThe user session ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ bindEmail:withCountryCode:code:sId:success:failure: [2/4]

- (void) bindEmail: (NSString *)  email
withCountryCode: (NSString *)  countryCode
code: (NSString *)  code
sId: (NSString *)  sId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds an email.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification Code.
sIdThe user session ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ bindEmail:withCountryCode:code:sId:success:failure: [3/4]

- (void) bindEmail: (NSString *)  email
withCountryCode: (NSString *)  countryCode
code: (NSString *)  code
sId: (NSString *)  sId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds an email.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification Code.
sIdThe user session ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ bindEmail:withCountryCode:code:sId:success:failure: [4/4]

- (void) bindEmail: (NSString *)  email
withCountryCode: (NSString *)  countryCode
code: (NSString *)  code
sId: (NSString *)  sId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds an email.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification Code.
sIdThe user session ID.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ cancelAccount:failure: [1/4]

- (void) cancelAccount: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.

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

◆ cancelAccount:failure: [2/4]

- (void) cancelAccount: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.

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

◆ cancelAccount:failure: [3/4]

- (void) cancelAccount: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.

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

◆ cancelAccount:failure: [4/4]

- (void) cancelAccount: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Destroys an account. One week after the operation, all of the account information is permanently removed from the server. After login before the information is removed, the destroying request is canceled.

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

◆ cancelRequest [1/4]

- (void) cancelRequest

Cancels the network request.

◆ cancelRequest [2/4]

- (void) cancelRequest

Cancels the network request.

◆ cancelRequest [3/4]

- (void) cancelRequest

Cancels the network request.

◆ cancelRequest [4/4]

- (void) cancelRequest

Cancels the network request.

◆ changBindAccount:countryCode:code:success:failure: [1/4]

- (void) changBindAccount: (NSString *)  account
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Change to bind a mobile phone number or a email.

Parameters
accountA mobile phone number or a email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ changBindAccount:countryCode:code:success:failure: [2/4]

- (void) changBindAccount: (NSString *)  account
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Change to bind a mobile phone number or a email.

Parameters
accountA mobile phone number or a email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ changBindAccount:countryCode:code:success:failure: [3/4]

- (void) changBindAccount: (NSString *)  account
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Change to bind a mobile phone number or a email.

Parameters
accountA mobile phone number or a email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ changBindAccount:countryCode:code:success:failure: [4/4]

- (void) changBindAccount: (NSString *)  account
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Change to bind a mobile phone number or a email.

Parameters
accountA mobile phone number or a email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ checkCodeWithUserName:region:countryCode:code:type:success:failure: [1/4]

- (void) checkCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
type: (NSInteger)  type
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Checks the verification code that is used to register, log in, or reset the password.

Parameters
userNameThe phone number or email address.
regionTo complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the mobile phone password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ checkCodeWithUserName:region:countryCode:code:type:success:failure: [2/4]

- (void) checkCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
type: (NSInteger)  type
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Checks the verification code that is used to register, log in, or reset the password.

Parameters
userNameThe phone number or email address.
regionTo complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the mobile phone password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ checkCodeWithUserName:region:countryCode:code:type:success:failure: [3/4]

- (void) checkCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
type: (NSInteger)  type
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Checks the verification code that is used to register, log in, or reset the password.

Parameters
userNameThe phone number or email address.
regionTo complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the mobile phone password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ checkCodeWithUserName:region:countryCode:code:type:success:failure: [4/4]

- (void) checkCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
type: (NSInteger)  type
success: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Checks the verification code that is used to register, log in, or reset the password.

Parameters
userNameThe phone number or email address.
regionTo complete the required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the mobile phone password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ checkPasswordFormat:withPasswordRegularType: [1/4]

- (BOOL) checkPasswordFormat: (NSString *)  password
withPasswordRegularType: (ThingPasswordRegularType)  regularType 

Checks whether the password format meets the password strength requirements.

Parameters
passwordThe password to be checked.
regularTypeThe recommended password type.
Returns
The result of the check.

◆ checkPasswordFormat:withPasswordRegularType: [2/4]

- (BOOL) checkPasswordFormat: (NSString *)  password
withPasswordRegularType: (ThingPasswordRegularType)  regularType 

Checks whether the password format meets the password strength requirements.

Parameters
passwordThe password to be checked.
regularTypeThe recommended password type.
Returns
The result of the check.

◆ checkPasswordFormat:withPasswordRegularType: [3/4]

- (BOOL) checkPasswordFormat: (NSString *)  password
withPasswordRegularType: (ThingPasswordRegularType)  regularType 

Checks whether the password format meets the password strength requirements.

Parameters
passwordThe password to be checked.
regularTypeThe recommended password type.
Returns
The result of the check.

◆ checkPasswordFormat:withPasswordRegularType: [4/4]

- (BOOL) checkPasswordFormat: (NSString *)  password
withPasswordRegularType: (ThingPasswordRegularType)  regularType 

Checks whether the password format meets the password strength requirements.

Parameters
passwordThe password to be checked.
regularTypeThe recommended password type.
Returns
The result of the check.

◆ clearUserInfo [1/4]

- (void) clearUserInfo

Clear user data.

◆ clearUserInfo [2/4]

- (void) clearUserInfo

Clear user data.

◆ clearUserInfo [3/4]

- (void) clearUserInfo

Clear user data.

◆ clearUserInfo [4/4]

- (void) clearUserInfo

Clear user data.

◆ deleteAnonymousAccountWithSuccess:failure: [1/4]

- (void) deleteAnonymousAccountWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes an anonymous account.

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

Provided by category ThingSmartUser(Anonymous).

◆ deleteAnonymousAccountWithSuccess:failure: [2/4]

- (void) deleteAnonymousAccountWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes an anonymous account.

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

Provided by category ThingSmartUser(Anonymous).

◆ deleteAnonymousAccountWithSuccess:failure: [3/4]

- (void) deleteAnonymousAccountWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes an anonymous account.

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

Provided by category ThingSmartUser(Anonymous).

◆ deleteAnonymousAccountWithSuccess:failure: [4/4]

- (void) deleteAnonymousAccountWithSuccess: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Deletes an anonymous account.

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

Provided by category ThingSmartUser(Anonymous).

◆ didReceiveApplicationContext: [1/4]

- (void) didReceiveApplicationContext: (watchos(2.0))  API_AVAILABLE

Receives ThingSmartUser context from iPhone.

Parameters
applicationContextThe app context.

Provided by category ThingSmartUser(WCSession).

◆ didReceiveApplicationContext: [2/4]

- (void) didReceiveApplicationContext: (watchos(2.0))  API_AVAILABLE

Receives ThingSmartUser context from iPhone.

Parameters
applicationContextThe app context.

Provided by category ThingSmartUser(WCSession).

◆ didReceiveApplicationContext: [3/4]

- (void) didReceiveApplicationContext: (watchos(2.0))  API_AVAILABLE

Receives ThingSmartUser context from iPhone.

Parameters
applicationContextThe app context.

Provided by category ThingSmartUser(WCSession).

◆ didReceiveApplicationContext: [4/4]

- (void) didReceiveApplicationContext: (watchos(2.0))  API_AVAILABLE

Receives ThingSmartUser context from iPhone.

Parameters
applicationContextThe app context.

Provided by category ThingSmartUser(WCSession).

◆ getDefaultDomain [1/4]

- (NSDictionary *) getDefaultDomain

Returns the default region.

Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultDomain [2/4]

- (NSDictionary *) getDefaultDomain

Returns the default region.

Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultDomain [3/4]

- (NSDictionary *) getDefaultDomain

Returns the default region.

Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultDomain [4/4]

- (NSDictionary *) getDefaultDomain

Returns the default region.

Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultRegionWithCountryCode: [1/4]

- (NSString *) getDefaultRegionWithCountryCode: (NSString *)  countryCode

Returns the default region of the country code. For example,AY indicates China, AZ indicates America, and EU indicates Europe.

Parameters
countryCodeThe country code.
Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultRegionWithCountryCode: [2/4]

- (NSString *) getDefaultRegionWithCountryCode: (NSString *)  countryCode

Returns the default region of the country code. For example,AY indicates China, AZ indicates America, and EU indicates Europe.

Parameters
countryCodeThe country code.
Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultRegionWithCountryCode: [3/4]

- (NSString *) getDefaultRegionWithCountryCode: (NSString *)  countryCode

Returns the default region of the country code. For example,AY indicates China, AZ indicates America, and EU indicates Europe.

Parameters
countryCodeThe country code.
Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getDefaultRegionWithCountryCode: [4/4]

- (NSString *) getDefaultRegionWithCountryCode: (NSString *)  countryCode

Returns the default region of the country code. For example,AY indicates China, AZ indicates America, and EU indicates Europe.

Parameters
countryCodeThe country code.
Returns
The default region of the country code.

Provided by category ThingSmartUser(Region).

◆ getWhiteListWhoCanSendMobileCodeSuccess:failure: [1/4]

- (void) getWhiteListWhoCanSendMobileCodeSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the whitelist of regions to enable registration with mobile phone numbers.

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

Provided by category ThingSmartUser(Region).

◆ getWhiteListWhoCanSendMobileCodeSuccess:failure: [2/4]

- (void) getWhiteListWhoCanSendMobileCodeSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the whitelist of regions to enable registration with mobile phone numbers.

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

Provided by category ThingSmartUser(Region).

◆ getWhiteListWhoCanSendMobileCodeSuccess:failure: [3/4]

- (void) getWhiteListWhoCanSendMobileCodeSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the whitelist of regions to enable registration with mobile phone numbers.

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

Provided by category ThingSmartUser(Region).

◆ getWhiteListWhoCanSendMobileCodeSuccess:failure: [4/4]

- (void) getWhiteListWhoCanSendMobileCodeSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the whitelist of regions to enable registration with mobile phone numbers.

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

Provided by category ThingSmartUser(Region).

◆ login:phoneNumber:code:success:failure: [1/4]

- (void) login: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with a mobile phone verification code.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginWithMobile:countryCode:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ login:phoneNumber:code:success:failure: [2/4]

- (void) login: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with a mobile phone verification code.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginWithMobile:countryCode:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ login:phoneNumber:code:success:failure: [3/4]

- (void) login: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with a mobile phone verification code.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginWithMobile:countryCode:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ login:phoneNumber:code:success:failure: [4/4]

- (void) login: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with a mobile phone verification code.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginWithMobile:countryCode:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure: [1/4]

- (void) loginByAuth2WithType: (ThingSmartUserLoginType type
countryCode: (NSString *)  countryCode
accessToken: (NSString *)  accessToken
extraInfo: (NSDictionary *)  extraInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with a third-party account.

Parameters
typeThe login type, such as ThingSmartUserLoginTypeApple for Apple login.
countryCodeThe country code.
accessTokenThe access token for third-party account login.
extraInfoAdditional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT, also can use ThingSmartUserLoginJWTModelin params extraInfo.
successCalled upon successful completion of the task.
failureCalled when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain, error code is ThingSmartUserLoginErrorCode

◆ loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure: [2/4]

- (void) loginByAuth2WithType: (ThingSmartUserLoginType type
countryCode: (NSString *)  countryCode
accessToken: (NSString *)  accessToken
extraInfo: (NSDictionary *)  extraInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with a third-party account.

Parameters
typeThe login type, such as ThingSmartUserLoginTypeApple for Apple login.
countryCodeThe country code.
accessTokenThe access token for third-party account login.
extraInfoAdditional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT, also can use ThingSmartUserLoginJWTModelin params extraInfo.
successCalled upon successful completion of the task.
failureCalled when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain, error code is ThingSmartUserLoginErrorCode

◆ loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure: [3/4]

- (void) loginByAuth2WithType: (ThingSmartUserLoginType type
countryCode: (NSString *)  countryCode
accessToken: (NSString *)  accessToken
extraInfo: (NSDictionary *)  extraInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with a third-party account.

Parameters
typeThe login type, such as ThingSmartUserLoginTypeApple for Apple login.
countryCodeThe country code.
accessTokenThe access token for third-party account login.
extraInfoAdditional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT, also can use ThingSmartUserLoginJWTModelin params extraInfo.
successCalled upon successful completion of the task.
failureCalled when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain, error code is ThingSmartUserLoginErrorCode

◆ loginByAuth2WithType:countryCode:accessToken:extraInfo:success:failure: [4/4]

- (void) loginByAuth2WithType: (ThingSmartUserLoginType type
countryCode: (NSString *)  countryCode
accessToken: (NSString *)  accessToken
extraInfo: (NSDictionary *)  extraInfo
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with a third-party account.

Parameters
typeThe login type, such as ThingSmartUserLoginTypeApple for Apple login.
countryCodeThe country code.
accessTokenThe access token for third-party account login.
extraInfoAdditional parameters containing platform identifier and unique ID for cryptographic tokens. If type is ThingSmartUserLoginTypeJWT, also can use ThingSmartUserLoginJWTModelin params extraInfo.
successCalled upon successful completion of the task.
failureCalled when the task fails due to an error. Error domian is ThingSmartUserLoginErrorDomain, error code is ThingSmartUserLoginErrorCode

◆ loginByEmail:email:password:success:failure: [1/4]

- (void) loginByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with an email.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByEmail:email:password:success:failure: [2/4]

- (void) loginByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with an email.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByEmail:email:password:success:failure: [3/4]

- (void) loginByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with an email.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByEmail:email:password:success:failure: [4/4]

- (void) loginByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with an email.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByFacebook:token:success:failure: [1/4]

- (void) loginByFacebook: (NSString *)  countryCode
token: (NSString *)  token
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Facebook account.

Parameters
countryCodeThe country code.
tokenThe token that is used for login with the Facebook account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByFacebook:token:success:failure: [2/4]

- (void) loginByFacebook: (NSString *)  countryCode
token: (NSString *)  token
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Facebook account.

Parameters
countryCodeThe country code.
tokenThe token that is used for login with the Facebook account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByFacebook:token:success:failure: [3/4]

- (void) loginByFacebook: (NSString *)  countryCode
token: (NSString *)  token
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Facebook account.

Parameters
countryCodeThe country code.
tokenThe token that is used for login with the Facebook account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByFacebook:token:success:failure: [4/4]

- (void) loginByFacebook: (NSString *)  countryCode
token: (NSString *)  token
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Facebook account.

Parameters
countryCodeThe country code.
tokenThe token that is used for login with the Facebook account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByPhone:phoneNumber:password:success:failure: [1/4]

- (void) loginByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByPhone:phoneNumber:password:success:failure: [2/4]

- (void) loginByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByPhone:phoneNumber:password:success:failure: [3/4]

- (void) loginByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByPhone:phoneNumber:password:success:failure: [4/4]

- (void) loginByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByQQ:userId:accessToken:success:failure: [1/4]

- (void) loginByQQ: (NSString *)  countryCode
userId: (NSString *)  userId
accessToken: (NSString *)  accessToken
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the QQ account.

Parameters
countryCodeThe country code.
userIdThe user ID that is authorized for login with the QQ account.
accessTokenAccessToken that is used for login with the QQ account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByQQ:userId:accessToken:success:failure: [2/4]

- (void) loginByQQ: (NSString *)  countryCode
userId: (NSString *)  userId
accessToken: (NSString *)  accessToken
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the QQ account.

Parameters
countryCodeThe country code.
userIdThe user ID that is authorized for login with the QQ account.
accessTokenAccessToken that is used for login with the QQ account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByQQ:userId:accessToken:success:failure: [3/4]

- (void) loginByQQ: (NSString *)  countryCode
userId: (NSString *)  userId
accessToken: (NSString *)  accessToken
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the QQ account.

Parameters
countryCodeThe country code.
userIdThe user ID that is authorized for login with the QQ account.
accessTokenAccessToken that is used for login with the QQ account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByQQ:userId:accessToken:success:failure: [4/4]

- (void) loginByQQ: (NSString *)  countryCode
userId: (NSString *)  userId
accessToken: (NSString *)  accessToken
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the QQ account.

Parameters
countryCodeThe country code.
userIdThe user ID that is authorized for login with the QQ account.
accessTokenAccessToken that is used for login with the QQ account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) loginByQRcode: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Authorizes third-party apps to support login with QR code.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) loginByQRcode: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Authorizes third-party apps to support login with QR code.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) loginByQRcode: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Authorizes third-party apps to support login with QR code.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) loginByQRcode: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Authorizes third-party apps to support login with QR code.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

◆ loginByTwitter:key:secret:success:failure: [1/4]

- (void) loginByTwitter: (NSString *)  countryCode
key: (NSString *)  key
secret: (NSString *)  secret
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Twitter account.

Parameters
countryCodeThe country code.
keyThe key that is used for login with the Twitter account.
secretThe secret that is used for login with the Twitter account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByTwitter:key:secret:success:failure: [2/4]

- (void) loginByTwitter: (NSString *)  countryCode
key: (NSString *)  key
secret: (NSString *)  secret
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Twitter account.

Parameters
countryCodeThe country code.
keyThe key that is used for login with the Twitter account.
secretThe secret that is used for login with the Twitter account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByTwitter:key:secret:success:failure: [3/4]

- (void) loginByTwitter: (NSString *)  countryCode
key: (NSString *)  key
secret: (NSString *)  secret
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Twitter account.

Parameters
countryCodeThe country code.
keyThe key that is used for login with the Twitter account.
secretThe secret that is used for login with the Twitter account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByTwitter:key:secret:success:failure: [4/4]

- (void) loginByTwitter: (NSString *)  countryCode
key: (NSString *)  key
secret: (NSString *)  secret
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the Twitter account.

Parameters
countryCodeThe country code.
keyThe key that is used for login with the Twitter account.
secretThe secret that is used for login with the Twitter account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByUid:password:countryCode:success:failure: [1/4]

- (void) loginByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginByUid:password:countryCode:success:failure: [2/4]

- (void) loginByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginByUid:password:countryCode:success:failure: [3/4]

- (void) loginByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginByUid:password:countryCode:success:failure: [4/4]

- (void) loginByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginByWechat:code:success:failure: [1/4]

- (void) loginByWechat: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the WeChat account.

Parameters
countryCodeThe country code.
codeThe code that is used for login with the WeChat account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByWechat:code:success:failure: [2/4]

- (void) loginByWechat: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the WeChat account.

Parameters
countryCodeThe country code.
codeThe code that is used for login with the WeChat account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByWechat:code:success:failure: [3/4]

- (void) loginByWechat: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the WeChat account.

Parameters
countryCodeThe country code.
codeThe code that is used for login with the WeChat account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginByWechat:code:success:failure: [4/4]

- (void) loginByWechat: (NSString *)  countryCode
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables login with the WeChat account.

Parameters
countryCodeThe country code.
codeThe code that is used for login with the WeChat account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginOrRegisterByPhone:uid:password:createHome:success:failure: [1/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates a default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:createHome:success:failure: [2/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates a default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:createHome:success:failure: [3/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates a default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:createHome:success:failure: [4/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates a default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:success:failure: [1/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:success:failure: (ThingSmartUser(DeprecatedApi)) instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:success:failure: [2/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:success:failure: (ThingSmartUser(DeprecatedApi)) instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:success:failure: [3/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:success:failure: (ThingSmartUser(DeprecatedApi)) instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterByPhone:uid:password:success:failure: [4/4]

- (void) loginOrRegisterByPhone: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:success:failure: (ThingSmartUser(DeprecatedApi)) instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: [1/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

The user ID that is used to log in or register. The account is registered at the first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates the default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: [2/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

The user ID that is used to log in or register. The account is registered at the first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates the default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: [3/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

The user ID that is used to log in or register. The account is registered at the first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates the default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: [4/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
createHome: (BOOL)  createHome
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

The user ID that is used to log in or register. The account is registered at the first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
createHomeCreates the default home.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginOrRegisterWithCountryCode:uid:password:success:failure: [1/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead.

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterWithCountryCode:uid:password:success:failure: [2/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead.

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterWithCountryCode:uid:password:success:failure: [3/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead.

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOrRegisterWithCountryCode:uid:password:success:failure: [4/4]

- (void) loginOrRegisterWithCountryCode: (NSString *)  countryCode
uid: (NSString *)  uid
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration and login with the user ID. The account is registered at first login.

Parameters
countryCodeThe country code.
uidThe user ID.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated. Use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead.

Provided by category ThingSmartUser(DeprecatedApi).

◆ loginOut:failure: [1/4]

- (void) loginOut: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Logout.

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

◆ loginOut:failure: [2/4]

- (void) loginOut: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Logout.

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

◆ loginOut:failure: [3/4]

- (void) loginOut: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Logout.

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

◆ loginOut:failure: [4/4]

- (void) loginOut: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Logout.

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

◆ loginWithEmail:countryCode:code:success:failure: [1/4]

- (void) loginWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with an email verification code.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithEmail:countryCode:code:success:failure: [2/4]

- (void) loginWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with an email verification code.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithEmail:countryCode:code:success:failure: [3/4]

- (void) loginWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with an email verification code.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithEmail:countryCode:code:success:failure: [4/4]

- (void) loginWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with an email verification code.

Parameters
emailThe email.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithMobile:countryCode:code:success:failure: [1/4]

- (void) loginWithMobile: (NSString *)  mobile
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with the mobile phone verification code.

Parameters
mobileThe mobile phone number.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithMobile:countryCode:code:success:failure: [2/4]

- (void) loginWithMobile: (NSString *)  mobile
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with the mobile phone verification code.

Parameters
mobileThe mobile phone number.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithMobile:countryCode:code:success:failure: [3/4]

- (void) loginWithMobile: (NSString *)  mobile
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with the mobile phone verification code.

Parameters
mobileThe mobile phone number.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ loginWithMobile:countryCode:code:success:failure: [4/4]

- (void) loginWithMobile: (NSString *)  mobile
countryCode: (NSString *)  countryCode
code: (NSString *)  code
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Enables login with the mobile phone verification code.

Parameters
mobileThe mobile phone number.
countryCodeThe country code.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) loginWithTicket: (NSString *)  ticket
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.

Parameters
ticketUser ticket from service.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

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

- (void) loginWithTicket: (NSString *)  ticket
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.

Parameters
ticketUser ticket from service.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

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

- (void) loginWithTicket: (NSString *)  ticket
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.

Parameters
ticketUser ticket from service.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

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

- (void) loginWithTicket: (NSString *)  ticket
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Login with ticket. Ticket is created from a third-party cloud platform, for more information, please refer to the thing.cloud-to-cloud solution.

Parameters
ticketUser ticket from service.
successCalled when the task finishes successfully.
failureCalled when the task is interrupted by an error.

◆ mobileBinding:phoneNumber:code:success:failure: [1/4]

- (void) mobileBinding: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ mobileBinding:phoneNumber:code:success:failure: [2/4]

- (void) mobileBinding: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ mobileBinding:phoneNumber:code:success:failure: [3/4]

- (void) mobileBinding: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ mobileBinding:phoneNumber:code:success:failure: [4/4]

- (void) mobileBinding: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) regionListWithCountryCode: (NSString *)  countryCode
success: (void(^)(NSArray< ThingRegionModel * > *regionList))  success
failure: (ThingFailureError failure 

Returns the region list.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) regionListWithCountryCode: (NSString *)  countryCode
success: (void(^)(NSArray< ThingRegionModel * > *regionList))  success
failure: (ThingFailureError failure 

Returns the region list.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) regionListWithCountryCode: (NSString *)  countryCode
success: (void(^)(NSArray< ThingRegionModel * > *regionList))  success
failure: (ThingFailureError failure 

Returns the region list.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) regionListWithCountryCode: (NSString *)  countryCode
success: (void(^)(NSArray< ThingRegionModel * > *regionList))  success
failure: (ThingFailureError failure 

Returns the region list.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

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

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

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

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

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

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

◆ registerAnonymousWithCountryCode:userName:success:failure: [1/4]

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
userNameThe username, such as [UIDevice currentDevice].name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerAnonymousWithCountryCode:userName:success:failure: [2/4]

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
userNameThe username, such as [UIDevice currentDevice].name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerAnonymousWithCountryCode:userName:success:failure: [3/4]

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
userNameThe username, such as [UIDevice currentDevice].name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerAnonymousWithCountryCode:userName:success:failure: [4/4]

- (void) registerAnonymousWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables anonymous registration.

Parameters
countryCodeThe country code.
userNameThe username, such as [UIDevice currentDevice].name.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByEmail:email:password:code:success:failure: [1/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Email register 2.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByEmail:email:password:code:success:failure: [2/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Email register 2.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByEmail:email:password:code:success:failure: [3/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Email register 2.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByEmail:email:password:code:success:failure: [4/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Email register 2.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByEmail:email:password:success:failure: [1/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables email registration 1.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use registerByEmail:email:password:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByEmail:email:password:success:failure: [2/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables email registration 1.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use registerByEmail:email:password:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByEmail:email:password:success:failure: [3/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables email registration 1.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use registerByEmail:email:password:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByEmail:email:password:success:failure: [4/4]

- (void) registerByEmail: (NSString *)  countryCode
email: (NSString *)  email
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables email registration 1.0.

Parameters
countryCodeThe country code.
emailThe email.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use registerByEmail:email:password:code:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByPhone:phoneNumber:password:code:success:failure: [1/4]

- (void) registerByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Registers with a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByPhone:phoneNumber:password:code:success:failure: [2/4]

- (void) registerByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Registers with a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByPhone:phoneNumber:password:code:success:failure: [3/4]

- (void) registerByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Registers with a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByPhone:phoneNumber:password:code:success:failure: [4/4]

- (void) registerByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
password: (NSString *)  password
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Registers with a mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
passwordThe password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ registerByUid:password:countryCode:success:failure: [1/4]

- (void) registerByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByUid:password:countryCode:success:failure: [2/4]

- (void) registerByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByUid:password:countryCode:success:failure: [3/4]

- (void) registerByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerByUid:password:countryCode:success:failure: [4/4]

- (void) registerByUid: (NSString *)  uid
password: (NSString *)  password
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Enables registration with the user ID.

Parameters
uidThe user ID.
passwordThe password.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
This method is deprecated, use loginOrRegisterWithCountryCode:uid:password:createHome:success:failure: instead

Provided by category ThingSmartUser(DeprecatedApi).

◆ registerWithUserName:region:countryCode:code:password:success:failure: [1/4]

- (void) registerWithUserName: (NSString *)  userName
region: (NSString *)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
password: (NSString *)  password
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Registers with the mobile phone or email.

Parameters
userNameThe mobile phone number or email address.
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ registerWithUserName:region:countryCode:code:password:success:failure: [2/4]

- (void) registerWithUserName: (NSString *)  userName
region: (NSString *)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
password: (NSString *)  password
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Registers with the mobile phone or email.

Parameters
userNameThe mobile phone number or email address.
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ registerWithUserName:region:countryCode:code:password:success:failure: [3/4]

- (void) registerWithUserName: (NSString *)  userName
region: (NSString *)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
password: (NSString *)  password
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Registers with the mobile phone or email.

Parameters
userNameThe mobile phone number or email address.
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ registerWithUserName:region:countryCode:code:password:success:failure: [4/4]

- (void) registerWithUserName: (NSString *)  userName
region: (NSString *)  region
countryCode: (NSString *)  countryCode
code: (NSString *)  code
password: (NSString *)  password
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Registers with the mobile phone or email.

Parameters
userNameThe mobile phone number or email address.
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ requestHighwayTokenWithSuccess:failure: [1/4]

- (void) requestHighwayTokenWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get highway gateway access token

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

Provided by category ThingSmartUser(Highway).

◆ requestHighwayTokenWithSuccess:failure: [2/4]

- (void) requestHighwayTokenWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get highway gateway access token

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

Provided by category ThingSmartUser(Highway).

◆ requestHighwayTokenWithSuccess:failure: [3/4]

- (void) requestHighwayTokenWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get highway gateway access token

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

Provided by category ThingSmartUser(Highway).

◆ requestHighwayTokenWithSuccess:failure: [4/4]

- (void) requestHighwayTokenWithSuccess: (ThingSuccessID success
failure: (ThingFailureError failure 

Get highway gateway access token

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

Provided by category ThingSmartUser(Highway).

◆ resetPasswordByEmail:email:newPassword:code:success:failure: [1/4]

- (void) resetPasswordByEmail: (NSString *)  countryCode
email: (NSString *)  email
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the email password.

Parameters
countryCodeThe country code.
emailThe email.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByEmail:email:newPassword:code:success:failure: [2/4]

- (void) resetPasswordByEmail: (NSString *)  countryCode
email: (NSString *)  email
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the email password.

Parameters
countryCodeThe country code.
emailThe email.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByEmail:email:newPassword:code:success:failure: [3/4]

- (void) resetPasswordByEmail: (NSString *)  countryCode
email: (NSString *)  email
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the email password.

Parameters
countryCodeThe country code.
emailThe email.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByEmail:email:newPassword:code:success:failure: [4/4]

- (void) resetPasswordByEmail: (NSString *)  countryCode
email: (NSString *)  email
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the email password.

Parameters
countryCodeThe country code.
emailThe email.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByPhone:phoneNumber:newPassword:code:success:failure: [1/4]

- (void) resetPasswordByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByPhone:phoneNumber:newPassword:code:success:failure: [2/4]

- (void) resetPasswordByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByPhone:phoneNumber:newPassword:code:success:failure: [3/4]

- (void) resetPasswordByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetPasswordByPhone:phoneNumber:newPassword:code:success:failure: [4/4]

- (void) resetPasswordByPhone: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
newPassword: (NSString *)  newPassword
code: (NSString *)  code
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Resets the mobile phone password.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
newPasswordThe new password.
codeThe verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ resetWithUserInfo:source: [1/4]

- (void) resetWithUserInfo: (NSDictionary *)  info
source: (NSUInteger)  source 
Parameters
info
source6:login by phone 7: login by email

◆ resetWithUserInfo:source: [2/4]

- (void) resetWithUserInfo: (NSDictionary *)  info
source: (NSUInteger)  source 
Parameters
info
source6:login by phone 7: login by email

◆ resetWithUserInfo:source: [3/4]

- (void) resetWithUserInfo: (NSDictionary *)  info
source: (NSUInteger)  source 
Parameters
info
source6:login by phone 7: login by email

◆ resetWithUserInfo:source: [4/4]

- (void) resetWithUserInfo: (NSDictionary *)  info
source: (NSUInteger)  source 
Parameters
info
source6:login by phone 7: login by email

◆ sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure: [1/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure: [2/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure: [3/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:captchaContext:success:failure: [4/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:success:failure: [1/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:success:failure: [2/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:success:failure: [3/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindingVerificationCodeWithEmail:countryCode:success:failure: [4/4]

- (void) sendBindingVerificationCodeWithEmail: (NSString *)  email
countryCode: (NSString *)  countryCode
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Returns the email verification code.

Parameters
emailThe email.
countryCodeThe country code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure: [1/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
captchaContext: (NSDictionary *)  captchaContext
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure: [2/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
captchaContext: (NSDictionary *)  captchaContext
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure: [3/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
captchaContext: (NSDictionary *)  captchaContext
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ sendBindVasVerifyCode:phoneNumber:captchaContext:success:failure: [4/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
captchaContext: (NSDictionary *)  captchaContext
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

◆ sendBindVasVerifyCode:phoneNumber:success:failure: [1/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bing a mobile phone and enable more services.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVasVerifyCode:phoneNumber:success:failure: [2/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bing a mobile phone and enable more services.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVasVerifyCode:phoneNumber:success:failure: [3/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bing a mobile phone and enable more services.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVasVerifyCode:phoneNumber:success:failure: [4/4]

- (void) sendBindVasVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bing a mobile phone and enable more services.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVerifyCode:phoneNumber:success:failure: [1/4]

- (void) sendBindVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVerifyCode:phoneNumber:success:failure: [2/4]

- (void) sendBindVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVerifyCode:phoneNumber:success:failure: [3/4]

- (void) sendBindVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendBindVerifyCode:phoneNumber:success:failure: [4/4]

- (void) sendBindVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCode:account:captchaContext:success:failure: [1/4]

- (void) sendVerifyCode: (NSString *)  countryCode
account: (NSString *)  account
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
accountThe mobile phone number/email.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCode:account:captchaContext:success:failure: [2/4]

- (void) sendVerifyCode: (NSString *)  countryCode
account: (NSString *)  account
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
accountThe mobile phone number/email.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCode:account:captchaContext:success:failure: [3/4]

- (void) sendVerifyCode: (NSString *)  countryCode
account: (NSString *)  account
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
accountThe mobile phone number/email.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCode:account:captchaContext:success:failure: [4/4]

- (void) sendVerifyCode: (NSString *)  countryCode
account: (NSString *)  account
captchaContext: (NSDictionary *)  captchaContext
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to bind a mobile phone number or change the mobile phone number.

Parameters
countryCodeThe country code.
accountThe mobile phone number/email.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCode:phoneNumber:type:success:failure: [1/4]

- (void) sendVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
type: (NSInteger)  type
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to a mobile phone to enable login, registration, and password resetting.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
typeValid values: 0 Log in with the mobile phone verification code. 1: Register with the mobile phone verification code. 2: Reset a password with the mobile phone verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCode:phoneNumber:type:success:failure: [2/4]

- (void) sendVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
type: (NSInteger)  type
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to a mobile phone to enable login, registration, and password resetting.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
typeValid values: 0 Log in with the mobile phone verification code. 1: Register with the mobile phone verification code. 2: Reset a password with the mobile phone verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCode:phoneNumber:type:success:failure: [3/4]

- (void) sendVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
type: (NSInteger)  type
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to a mobile phone to enable login, registration, and password resetting.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
typeValid values: 0 Log in with the mobile phone verification code. 1: Register with the mobile phone verification code. 2: Reset a password with the mobile phone verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCode:phoneNumber:type:success:failure: [4/4]

- (void) sendVerifyCode: (NSString *)  countryCode
phoneNumber: (NSString *)  phoneNumber
type: (NSInteger)  type
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to a mobile phone to enable login, registration, and password resetting.

Parameters
countryCodeThe country code.
phoneNumberThe mobile phone number.
typeValid values: 0 Log in with the mobile phone verification code. 1: Register with the mobile phone verification code. 2: Reset a password with the mobile phone verification code.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByEmail:email:success:failure: [1/4]

- (void) sendVerifyCodeByEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to reset the password.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByEmail:email:success:failure: [2/4]

- (void) sendVerifyCodeByEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to reset the password.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByEmail:email:success:failure: [3/4]

- (void) sendVerifyCodeByEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to reset the password.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByEmail:email:success:failure: [4/4]

- (void) sendVerifyCodeByEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to reset the password.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByRegisterEmail:email:success:failure: [1/4]

- (void) sendVerifyCodeByRegisterEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to register the account.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByRegisterEmail:email:success:failure: [2/4]

- (void) sendVerifyCodeByRegisterEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to register the account.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByRegisterEmail:email:success:failure: [3/4]

- (void) sendVerifyCodeByRegisterEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to register the account.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeByRegisterEmail:email:success:failure: [4/4]

- (void) sendVerifyCodeByRegisterEmail: (NSString *)  countryCode
email: (NSString *)  email
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Sends the verification code to an email to register the account.

Parameters
countryCodeThe country code.
emailThe email.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(DeprecatedApi).

◆ sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure: [1/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
captchaContext: (nonnull NSDictionary *)  captchaContext
success: (nonnull ThingSuccessHandler success
failure: (nonnull ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure: [2/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
captchaContext: (nonnull NSDictionary *)  captchaContext
success: (nonnull ThingSuccessHandler success
failure: (nonnull ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure: [3/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
captchaContext: (nonnull NSDictionary *)  captchaContext
success: (nonnull ThingSuccessHandler success
failure: (nonnull ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:captchaContext:success:failure: [4/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
captchaContext: (nonnull NSDictionary *)  captchaContext
success: (nonnull ThingSuccessHandler success
failure: (nonnull ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
captchaContextMan-machine identification ticket
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:success:failure: [1/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:success:failure: [2/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:success:failure: [3/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendVerifyCodeWithUserName:region:countryCode:type:success:failure: [4/4]

- (void) sendVerifyCodeWithUserName: (NSString *)  userName
region: (NSString *_Nullable)  region
countryCode: (NSString *)  countryCode
type: (NSInteger)  type
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sends the verification code to register, log in, or reset the password.

Parameters
userNameThe mobile phone number or email address.
regionTo enable required registration, use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
countryCodeThe country code.
typeValid values: 1: Register with the mobile phone verification code. 2: Log in with the mobile phone verification code. 3: Reset the password with the mobile phone number. 5: Complete account information in trial mode. 7: Change the account. 8: Cancel the account.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sharedInstance [1/4]

+ (instancetype) sharedInstance

Returns the singleton of the class.

◆ sharedInstance [2/4]

+ (instancetype) sharedInstance

Returns the singleton of the class.

◆ sharedInstance [3/4]

+ (instancetype) sharedInstance

Returns the singleton of the class.

◆ sharedInstance [4/4]

+ (instancetype) sharedInstance

Returns the singleton of the class.

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

- (void) switchUserRegion: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Switches the region of the logged-in user.

Warning
1. Switching the user's region is the same as registering in a new account to the region of the user. To comply with GDPR, when the region is switched, the user's device and scene are not taken to the new account. Only the user's information is taken to the new account.
2. When the account is switched to the new region, the earlier account is only reserved for 30 days and then will be deleted.
3. After the region is switched, the new account is logged in.
Parameters
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) switchUserRegion: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Switches the region of the logged-in user.

Warning
1. Switching the user's region is the same as registering in a new account to the region of the user. To comply with GDPR, when the region is switched, the user's device and scene are not taken to the new account. Only the user's information is taken to the new account.
2. When the account is switched to the new region, the earlier account is only reserved for 30 days and then will be deleted.
3. After the region is switched, the new account is logged in.
Parameters
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) switchUserRegion: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Switches the region of the logged-in user.

Warning
1. Switching the user's region is the same as registering in a new account to the region of the user. To comply with GDPR, when the region is switched, the user's device and scene are not taken to the new account. Only the user's information is taken to the new account.
2. When the account is switched to the new region, the earlier account is only reserved for 30 days and then will be deleted.
3. After the region is switched, the new account is logged in.
Parameters
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

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

- (void) switchUserRegion: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Switches the region of the logged-in user.

Warning
1. Switching the user's region is the same as registering in a new account to the region of the user. To comply with GDPR, when the region is switched, the user's device and scene are not taken to the new account. Only the user's information is taken to the new account.
2. When the account is switched to the new region, the earlier account is only reserved for 30 days and then will be deleted.
3. After the region is switched, the new account is logged in.
Parameters
regionThe region to register the account. Use [ThingSmartUser regionListWithCountryCode:success:failure:] or [ThingSmartUser getDefaultRegionWithCountryCode:] to get the region.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Region).

◆ updateApplicationContext: [1/4]

- (BOOL) updateApplicationContext: (ios(9.0))  API_AVAILABLE

Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];

Parameters
sessionThe session.
Returns
Results of synchronization.

Provided by category ThingSmartUser(WCSession).

◆ updateApplicationContext: [2/4]

- (BOOL) updateApplicationContext: (ios(9.0))  API_AVAILABLE

Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];

Parameters
sessionThe session.
Returns
Results of synchronization.

Provided by category ThingSmartUser(WCSession).

◆ updateApplicationContext: [3/4]

- (BOOL) updateApplicationContext: (ios(9.0))  API_AVAILABLE

Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];

Parameters
sessionThe session.
Returns
Results of synchronization.

Provided by category ThingSmartUser(WCSession).

◆ updateApplicationContext: [4/4]

- (BOOL) updateApplicationContext: (ios(9.0))  API_AVAILABLE

Synchronizes ThingSmartUser context to Apple Watch. In the case of user login, logout, and session expiration on iPhone, use this method to manually synchronize the data. Example: [sharedInstance updateApplicationContext:session];

Parameters
sessionThe session.
Returns
Results of synchronization.

Provided by category ThingSmartUser(WCSession).

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

- (void) updateAvatarWithImageUrl: (NSString *)  imageUrl
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
imageUrlThe avatar image Url.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateAvatarWithImageUrl: (NSString *)  imageUrl
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
imageUrlThe avatar image Url.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateAvatarWithImageUrl: (NSString *)  imageUrl
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
imageUrlThe avatar image Url.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateAvatarWithImageUrl: (NSString *)  imageUrl
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
imageUrlThe avatar image Url.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateHeadIcon: (UIImage *)  headIcon
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
headIconThe avatar.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateHeadIcon: (UIImage *)  headIcon
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
headIconThe avatar.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateHeadIcon: (UIImage *)  headIcon
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
headIconThe avatar.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateHeadIcon: (UIImage *)  headIcon
success: (nullable ThingSuccessHandler success
failure: ("Will be removed in the)  future
(please maintain user avatar by yourself")  __deprecated_msg 

Edits the avatar.

Parameters
headIconThe avatar.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.
Deprecated:
Will be removed in the future, please maintain user avatar by yourself. USER_AVATAR_UPLOAD_REJECT_FOR_CUSTOMIZE error message will be returned when this method is called.

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

- (void) updateNickname: (NSString *)  nickName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the nickname.

Parameters
nickNameThe nickname.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateNickname: (NSString *)  nickName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the nickname.

Parameters
nickNameThe nickname.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateNickname: (NSString *)  nickName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the nickname.

Parameters
nickNameThe nickname.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateNickname: (NSString *)  nickName
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the nickname.

Parameters
nickNameThe nickname.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTempUnitWithTempUnit: (NSInteger)  tempUnit
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the user temperature unit.

Parameters
tempUnitThe temperature unit. For example, 1 means °C and 2 means °F.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTempUnitWithTempUnit: (NSInteger)  tempUnit
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the user temperature unit.

Parameters
tempUnitThe temperature unit. For example, 1 means °C and 2 means °F.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTempUnitWithTempUnit: (NSInteger)  tempUnit
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the user temperature unit.

Parameters
tempUnitThe temperature unit. For example, 1 means °C and 2 means °F.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTempUnitWithTempUnit: (NSInteger)  tempUnit
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits the user temperature unit.

Parameters
tempUnitThe temperature unit. For example, 1 means °C and 2 means °F.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTimeZoneWithTimeZoneId: (NSString *)  timeZoneId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits user time zone information.

Parameters
timeZoneIdThe time zone ID, such as Asia/Shanghai.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTimeZoneWithTimeZoneId: (NSString *)  timeZoneId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits user time zone information.

Parameters
timeZoneIdThe time zone ID, such as Asia/Shanghai.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTimeZoneWithTimeZoneId: (NSString *)  timeZoneId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits user time zone information.

Parameters
timeZoneIdThe time zone ID, such as Asia/Shanghai.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

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

- (void) updateTimeZoneWithTimeZoneId: (NSString *)  timeZoneId
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Edits user time zone information.

Parameters
timeZoneIdThe time zone ID, such as Asia/Shanghai.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ updateUserInfo:failure: [1/4]

- (void) updateUserInfo: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Updates user information.

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

◆ updateUserInfo:failure: [2/4]

- (void) updateUserInfo: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Updates user information.

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

◆ updateUserInfo:failure: [3/4]

- (void) updateUserInfo: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Updates user information.

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

◆ updateUserInfo:failure: [4/4]

- (void) updateUserInfo: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Updates user information.

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

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

- (void) userInfo: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Returns information about third-party apps.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) userInfo: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Returns information about third-party apps.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) userInfo: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Returns information about third-party apps.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

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

- (void) userInfo: (NSDictionary *)  codeInfo
success: (nullable ThingSuccessID success
failure: (nullable ThingFailureError failure 

Returns information about third-party apps.

Parameters
codeInfoThe QR code information.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(LoginByQRCode).

◆ usernameBindingWithCountryCode:userName:code:password:success:failure: [1/4]

- (void) usernameBindingWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
code: (NSString *)  code
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a username.

Parameters
countryCodeThe country code.
userNameThe mobile phone number or email address.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

◆ usernameBindingWithCountryCode:userName:code:password:success:failure: [2/4]

- (void) usernameBindingWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
code: (NSString *)  code
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a username.

Parameters
countryCodeThe country code.
userNameThe mobile phone number or email address.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

◆ usernameBindingWithCountryCode:userName:code:password:success:failure: [3/4]

- (void) usernameBindingWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
code: (NSString *)  code
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a username.

Parameters
countryCodeThe country code.
userNameThe mobile phone number or email address.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

◆ usernameBindingWithCountryCode:userName:code:password:success:failure: [4/4]

- (void) usernameBindingWithCountryCode: (NSString *)  countryCode
userName: (NSString *)  userName
code: (NSString *)  code
password: (NSString *)  password
success: (nullable ThingSuccessHandler success
failure: (nullable ThingFailureError failure 

Binds a username.

Parameters
countryCodeThe country code.
userNameThe mobile phone number or email address.
codeThe verification code.
passwordThe password.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartUser(Anonymous).

Property Documentation

◆ countryCode

- (NSString *) countryCode
readnonatomicstrong

The country code. For example, 86 means China, 1 means America.

Definition at line 124 of file ThingSmartUser.h.

◆ domain

- (NSDictionary *) domain
readnonatomicstrong

The API domains of the current account region.

Definition at line 133 of file ThingSmartUser.h.

◆ ecode

- (NSString *) ecode
readnonatomicstrong

Definition at line 169 of file ThingSmartUser.h.

◆ email

- (NSString *) email
readnonatomicstrong

The email.

Definition at line 121 of file ThingSmartUser.h.

◆ extras

- (NSDictionary *) extras
readnonatomicstrong

Extra parameters.

Definition at line 175 of file ThingSmartUser.h.

◆ gwHost

- (NSString *) gwHost
readnonatomicstrong

Definition at line 143 of file ThingSmartUser.h.

◆ headIconUrl

- (NSString *) headIconUrl
readnonatomicstrong

The avatar.

Definition at line 109 of file ThingSmartUser.h.

◆ isLogin

- (BOOL) isLogin
readnonatomicassign

The login status.

Definition at line 127 of file ThingSmartUser.h.

◆ mbHost

- (NSString *) mbHost
readnonatomicstrong

The MQTT host.

Definition at line 141 of file ThingSmartUser.h.

◆ mesh

- (ThingSmartBleMesh *) mesh
readwritenonatomicstrong

Provided by category ThingSmartUser(BleMesh).

Definition at line 17 of file ThingSmartUser+BleMesh.h.

◆ meshModel

- (ThingSmartBleMeshModel *) meshModel
readwritenonatomicstrong

Provided by category ThingSmartUser(BleMesh).

Definition at line 15 of file ThingSmartUser+BleMesh.h.

◆ nickname

- (NSString *) nickname
readnonatomicstrong

The nickname.

Definition at line 112 of file ThingSmartUser.h.

◆ partnerIdentity

- (NSString *) partnerIdentity
readnonatomicstrong

Definition at line 138 of file ThingSmartUser.h.

◆ phoneNumber

- (NSString *) phoneNumber
readnonatomicstrong

The mobile phone number.

Definition at line 118 of file ThingSmartUser.h.

◆ port

- (NSInteger) port
readnonatomicassign

The MQTT port.

Definition at line 146 of file ThingSmartUser.h.

◆ quicHost

- (NSString *) quicHost
readnonatomicstrong

The QUIC host.

Definition at line 152 of file ThingSmartUser.h.

◆ quicPort

- (NSInteger) quicPort
readnonatomicassign

The QUIC port.

Definition at line 155 of file ThingSmartUser.h.

◆ regFrom

- (ThingRegType) regFrom
readnonatomicassign

The user registration type.

Definition at line 164 of file ThingSmartUser.h.

◆ regionCode

- (NSString *) regionCode
readnonatomicstrong

The region code of the current account. For example, AY means China, AZ means America, and EU means Europe.

Definition at line 130 of file ThingSmartUser.h.

◆ sid

- (NSString *) sid
readnonatomicstrong

The session ID.

Definition at line 103 of file ThingSmartUser.h.

◆ snsNickname

- (NSString *) snsNickname
readnonatomicstrong

The nickname of the SNS account.

Definition at line 167 of file ThingSmartUser.h.

◆ tempUnit

- (NSInteger) tempUnit
readwritenonatomicassign

The temperature unit. For example, 1 means °C and 2 means °F.

Definition at line 161 of file ThingSmartUser.h.

◆ timezoneId

- (NSString *) timezoneId
readnonatomicstrong

The timezone ID, such as Asia/Shanghai.

Definition at line 136 of file ThingSmartUser.h.

◆ uid

- (NSString *) uid
readnonatomicstrong

The user ID.

Definition at line 106 of file ThingSmartUser.h.

◆ useQUIC

- (BOOL) useQUIC
readnonatomicassign

Specifies whether to enable QUIC.

Definition at line 158 of file ThingSmartUser.h.

◆ userAlias

- (NSString *) userAlias
readwritenonatomicstrong

Definition at line 177 of file ThingSmartUser.h.

◆ userName

- (NSString *) userName
readnonatomicstrong

The username. If the account is registered with a mobile phone number, the value is set to the mobile phone number. If the account is registered with an email, the value is set to the email.

Definition at line 115 of file ThingSmartUser.h.

◆ userType

- (NSInteger) userType
readnonatomicassign

The user type.

Definition at line 172 of file ThingSmartUser.h.

◆ useSSL

- (BOOL) useSSL
readnonatomicassign

Specifies whether to enable SSL.

Definition at line 149 of file ThingSmartUser.h.


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