ShareSDK SMS Verification Code integration detailed steps, sharesdk detailed steps
1. Here is the use of ShareSDK network SMS Verification Code SDK official website http://www.mob.com
Register as a developer in http://www.mob.com/#/reg first
Enter the corresponding information, email account, and then activate
After the account is created and activated
2. log in and click the Avatar button in the upper-right corner of the page-> go to the background,
Figure 1
3. Click to enter the background and the page appears.
Figure 2
I have already created an application. Figure 2 is displayed. If no application has been created, what we show here is:
Figure 3,
Then fill in the corresponding content according to Figure 4. Here we select the second text message Verification Code
SecurityCodeSDK, click in
We only need to figure 5, and then click the display on the right to obtain the value of the App Key and App Secret.
Write down appKey = c4cf35e7f978 appSecret = 33d272100b0805e826969d7ada9be1ea
After obtaining the two content, download the SMS Verification Code SDK below
1. Download SMS Verification Code SDK web site http://www.mob.com/#/downloadDetail/SMS/ios
After the download, open the file named SMS_SDK and drag the file to the project.
Remember to check the first Copy items if needed when importing
2. Then add the dependent Library File
Dependent database Graph
(Address Book function required)
(Address Book function required)
3. Add initialization code
Import the header file to the AppDelegate. m file.
# Import <SMS_SDK/SMSSDK. h>
Add the following code to this method:
-(BOOL) application :( UIApplication *) application didfinishlaunchingwitexceptions :( NSDictionary *) launchOptions {
The value of the appKey WE JUST OBTAINED
NSString * appKey = @ "c4cf35e7f978 ";
The value of the appSecret WE JUST OBTAINED
NSString * appSecret = @ "33d272100b0805e826969d7ada9be1ea ";
In this way, it is integrated.
[SMSSDK registerApp: appKey withSecret: appSecret];
Return YES;
}
The SMS_SDK.h file is the core class of SMSSDK. All methods of this class are provided by class methods, and corresponding methods are directly used as needed.
UIDemoDemoDemoUI
For more information, see the official document http://wiki.mob.com/iossms sdk 文/