Download Jar. Uses 10012K of libraries. Click here for Pure Java version (2578L/17K).
!7 lib 1400402 // twilio import com.twilio.Twilio; import com.twilio.rest.api.v2010.account.Message; import com.twilio.type.PhoneNumber; import com.twilio.security.RequestValidator; p { registerMainClassAs twilioHolder(); } sbool inited; sbool twilioInited() { ret inited; } svoid twilioInit(S accountSID, S authToken) { Twilio.init(accountSID, authToken); inited = true; } static Message twilioSend(S from, S to, S text) { ret Message .creator(new PhoneNumber(to), // to new PhoneNumber(from), // from text) .create(); } sbool twilioValidateRequest(S authToken, S url, SS params, S twilioSig) { RequestValidator validator = new(authToken); ret validator.validate(url, params, twilioSig); }
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: | #1028638 |
Snippet name: | Twilio Web Bot [wraps Twilio library because it conflicts with Google lib] |
Eternal ID of this version: | #1028638/11 |
Text MD5: | bd4af28dafca0971166a802122b46588 |
Transpilation MD5: | 12e7f7d4f065ef2222e4bd9574e683fa |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-30 16:20:04 |
Source code size: | 763 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 268 / 1158 |
Version history: | 10 change(s) |
Referenced in: | [show references] |