Download Jar. Uses 10012K of libraries. Click here for Pure Java version (2711L/16K).
1 | lib 1400402 // twilio |
2 | |
3 | import com.twilio.Twilio; |
4 | import com.twilio.rest.api.v2010.account.Message; |
5 | import com.twilio.type.PhoneNumber; |
6 | |
7 | // args: Account Sid, Auth Token (see twilio.com/console) |
8 | // & phone number to send from (.e.g. +1...) |
9 | // & phone number to send to (e.g. +1123...) |
10 | p { |
11 | Twilio.init(args[0], args[1]); |
12 | |
13 | Message message = Message |
14 | .creator(new PhoneNumber(args[3]), // to |
15 | new PhoneNumber(args[2]), // from |
16 | "Whazzup Eric this is a bot") |
17 | .create(); |
18 | |
19 | print(message.getSid()); |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028424 |
Snippet name: | Twilio Send SMS Test [OK] |
Eternal ID of this version: | #1028424/5 |
Text MD5: | 1902b8f7024e1b344333b9f5bddd9bee |
Transpilation MD5: | 603acc9c580ce87af34bc125148548d4 |
Author: | stefan |
Category: | javax / web chat bots |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-12-22 23:43:43 |
Source code size: | 584 bytes / 20 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 270 / 947 |
Version history: | 4 change(s) |
Referenced in: | [show references] |