Search code examples
iosftpsms

iPad sending API for SMS through email


I need my app to send a mail that becomes an SMS,

In order for the API from the ISP (Internet Service Provider), I need to generate the following ftp>

https://smsgw.exetel.com.au/sendsms/api_sms.php? username=xxxxxxxx&password=xxxxxxxx&mobilenumber=xxxxxxxx&message=x xxxxxxx&sender=xxxxxxxxx&messagetype=Text&referencenumber=xxxxxx

So, whats the best way to generate this ftp (without going to the browser, or automatically doing it), to send the email that becomes SMS?

the have another command to get the bulk SMS> Bulk SMS Sending Example Request:

//smsgw.exetel.com.au/sendsms/api_sms.php? username=xxxxxxxx&password=xxxxxxxx&mobilenumber=xxxxxxxx&message=x xxxxxxx&sender=xxxxxxxxx&messagetype=Text&referencenumber=xxxxxx


Solution

  • To generate the URL, have you tried concatenating strings?

    Shortcuts in Objective-C to concatenate NSStrings

    For actually loading the URL, have you tried NSURL?

    http://borkware.com/quickies/one?topic=NSURL