热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

开发笔记:Favlet:单击所有短信息发送者

篇首语:本文由编程笔记#小编为大家整理,主要介绍了Favlet:单击所有短信息发送者相关的知识,希望对你有一定的参考价值。Imadethissimple

篇首语:本文由编程笔记#小编为大家整理,主要介绍了Favlet:单击所有短信息发送者相关的知识,希望对你有一定的参考价值。



I made this simple Javascript to save me time. I was sick of having to thumb-bash on a tiny keypad or login to the slow Clickatell site and use their clunky interface (nothing it simpler than 2 text boxes and an OK button).



You will need an HTTP API POST account with Clickatell's Bulk SMS Gateway. I choose them as they are reliable and they are under half the price of most local providers (and they have simple, well documented APIs)



This script is on 1 line intentionally. In your favourite browser create a new bookmark with this as the URL/address. Change the 'username', 'password' and 'api_id' values to your own. Then test it out. Easy.



NOTE: It's not that pretty but you get sent to the API output on submission. If you get a session ID it all went OK, if not you will get an error with a simple explanation of what went wrong.

  1. Javascript:var username = 'CLICKATELL-USERNAME'; var password = 'CLICKATELL-PASSWORD'; var api_id = 'CLICKATELL-APIID '; var recipient = prompt('To: (international mobile number)', '61412888999'); if (recipient) var message = prompt('Message: (over 160 characters will send multiple SMS)', '61412888999'); if (recipient && message) window.location.href = 'http://api.clickatell.com/http/sendmsg?user=' + username + '&password=' + password + '&api_id=' + api_id + '&to=' + recipient + '&text=' + message

推荐阅读
author-avatar
那永A_334
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有