我有个这样的模特
from django.db import models
# Create your models here.
class Text(models.Model):
name = models.CharField(max_length=100, unique=True)
number = models.IntegerField(default=0)
def __unicode__(self):
return self.name我希望能够向一些联系人发送大量短信。
如何将它与免费网关kannel连接起来?
发布于 2014-11-06 09:26:24
来自http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN5058:
在您将Kannel配置为允许sendsms服务之后,您可以通过HTTP发送SMS消息,例如使用WWW浏览器。URL如下所示: http://smsbox.host.name:13013/cgi-bin/sendsms?username=foo&password=bar&to=0123456&text=Hello+world 因此,从技术上讲,您可以发出HTTP请求。这意味着所有信息都被填充到URL中。如果您想要经常通过浏览器使用这一点,您可能希望为此创建一个HTML表单。
https://stackoverflow.com/questions/26775149
复制相似问题