Fast Integrated SMS SDK Verification Development in iOS (SMSSDK), how to set up SMS authentication code in IOS development _ios

Source: Internet
Author: User

Hey.. SDK is someone else's, I just download to integrate.

SMSSDK download site: http://www.mob.com/(there are many other sites have similar SDK, such as https://www.juhe.cn/, etc., you can own Baidu, I am here to demonstrate the Mob official website)

This site is known as SMSSDK free, but go into a look ...

Free 20 per day, the upper limit of registration is permanently free. Don't say much, start ...

Official website Integrated Document http://wiki.mob.com/


[1~3 Step] I took a screenshot of the official document, a fool-like operation


[4.1]: First reader network description:


[4.2] Look at my project again, in the AppDelegate.h file


[5] Look at the official SDK, note the attribute introduction


And see what I wrote.


To verify the success of this, just a small demo, very simple, no official demo so rigorous, the official also support voice verification instructions, cell phone number input is not correct, authentication code two times send .... A lot of interested friends can download their own to see, and also feel that there is no place to welcome the discussion, I also learn well ....

Screenshot seems not clear, I fill point source code:

Submit mobile phone number//wolfhous Cnblogs blog, reprint please indicate the source!!!!
-(Ibaction) Clickphone: (ID) Sender {
[smssdk getverificationcodebymethod:smsgetcodemethodsms PhoneNumber: Self.phone.text zone:@ "" Customidentifier:nil result:^ (Nserror *error) {
if (error) {
NSLog (@) Wolfhous submit    Mobile phone Success%@ ", error);
}else{
NSLog (@ "Wolfhous submitted mobile number successful");
}
}];
Submit authentication code//personal website www.houshuai.com
-(ibaction) Clickcode: (ID) Sender {
[smssdk commitverificationcode: Self.code.text phoneNumber:self.phone.text zone:@ "" result:^ (Nserror *error) {
if (error) {
NSLog (@ "Wo     Lfhous Verification Code Failure%@ ", error);
}else{
NSLog (@ "Wolfhosu Authentication Code Success");
}
}];

Guess the article you are interested in:

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.