homebrew sms api

 

https://github.com/astaxie/build-web-application-with-golang/blob/master/ebook/08.1.md

client:

import socket
import json
 
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('aws.host8.tk', 6666))
 
sock.send('REQUESTER\n')
msg = '测试超长中文伪消息SSSSSSSSSSSSSS伪消息SSSSSSSSSSNIDHIU34t93ut9u34t@#$%^&*()符\r\nwdwdwdwdw{}{}<>:>"?}}+_-=结束'
msg = '测试超长中文伪消息SSSSSSSSSSSSSS伪消息SSSSSSSSSSNIDHIU34t93ut9u34t@#$%^&()*&^%THJN!@#'
print len(msg)
cmd = json.dumps({'type': 'sendsms', 'number': '+8618601065423', 'message': msg})
sock.send('%s\n' %cmd)
print sock.recv(1024)
sock.close()
import socket
import json

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('aws.host8.tk', 6666))

sock.send('WORKER\n')
#cmd = json.dumps({'type': 'sendsms', 'number': '+8618601065423', 'message': '测试伪消息'})
#sock.send('%s\n' %cmd)
print sock.recv(1024)
sock.close()

PUbSubHubbub

push~

  • CODE COMPLETE !
  • http://cn.engadget.com/
  • https://github.com/jteeuwen/go-pkg-rss/blob/master/testdata/example.go
  • http://www.ttsgs.com/tag/golang/
  • http://www.ttsgs.com/2013/10/30/go%E8%AF%AD%E8%A8%80%E5%AE%9E%E7%8E%B0%E6%A8%A1%E6%8B%9F%E7%99%BB%E9%99%86%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%B9%B3%E5%8F%B0%EF%BC%8C%E7%AA%81%E7%A0%B4%E5%BE%AE%E4%BF%A1%E7%BE%A4%E5%8F%91%E6%AF%8F/
  • https://gowalker.org/github.com/wizjin/weixin
  • https://github.com/astaxie/weixin
  • https://github.com/wendal/goweixin
  • http://blog.csdn.net/songbohr/article/details/13613847
  • https://github.com/vincenting/weChat-python-sdk/blob/master/demo.py

http://www.sudochina.com/archives/3/9/59.html