ShareSDK SMS Verification Code integration detailed steps, sharesdk detailed steps

Source: Internet
Author: User

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 文/

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.