SHARESDK SMS Verification Code Integration detailed steps

Source: Internet
Author: User
Tags email account

1. Here is the SHARESDK network SMS Verification Code SDK official website http://www.mob.com

First go to Http://www.mob.com/#/reg to register as a developer

Fill in the appropriate information, email account, and then activate the completed

After creating a good account activation

2. Log in, click the Avatar button in the top right corner of the page to enter the background,

Figure 1

3. Click into the background and then the interface appears.

Figure 2

I click here has already created a show is Figure 2, if you have not created an application, we show here is

Figure 3 of the style,

Then fill in the corresponding content according to figure IV, we are here is the SMS verification code to select a second

SECURITYCODESDK, click to enter

We only need to Figure 5, then click on the right side of the display to the app key and app Secret value to remove the

Write down appkey=c4cf35e7f978 appsecret=33d272100b0805e826969d7ada9be1ea.

After these two contents are obtained, download the SMS Verification Code SDK below

1. Download SMS Verification Code SDK URL Http://www.mob.com/#/downloadDetail/SMS/ios

After downloading, open all we need is a file named Sms_sdk, and drag this file to the project

When importing, don't forget to tick the first copy items if needed

2. Then add the dependent library file

Dependent Kuto

(Address Book function required)

(Address Book function required)

3. Add initialization code

Import header files in the APPDELEGATE.M file

#import <SMS_SDK/SMSSDK.h>

Add the following lines of code to this method

-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions {

The value of the appkey we just acquired

NSString *[email protected] "c4cf35e7f978";

The value of the appsecret we just acquired

NSString *[email protected] "33d272100b0805e826969d7ada9be1ea";

Such a fill, it integrates the

[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 as a class method, and the corresponding methods are used directly as needed.

Uidemodemodemoui

More reference official documents Http://wiki.mob.com/iOS SMS SDK Integration documentation/

SHARESDK SMS Verification Code Integration detailed steps

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.