Last active
August 29, 2015 14:14
-
-
Save rufer7/245d6c4044b4bc3160d9 to your computer and use it in GitHub Desktop.
How to use swisscom-sms-api-client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import be.rufer.swisscom.sms.api.client.SwisscomSmsSender; | |
import be.rufer.swisscom.sms.api.domain.CommunicationWrapper; | |
public class SwisscomSmsSenderExample | |
{ | |
public static void main( String[] args ) | |
{ | |
// SENDER_NUMBER and RECEIVER_NUMBER1 in the following format: +41791234567 | |
SwisscomSmsSender smsSender = new SwisscomSmsSender("API_KEY", "SENDER_NUMBER"); | |
CommunicationWrapper response = smsSender.sendSms("MESSAGE", "RECEIVER_NUMBER1"); | |
// Sending a SMS to several receivers | |
CommunicationWrapper response2 = smsSender.sendSms("MESSAGE", "RECEIVER_NUMBER1", "RECEIVER_NUMBER2"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment