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: