読者です 読者をやめる 読者になる 読者になる

Engineer as a Lifestyle @tenkoma

tenkoma's testing blog

im.kayac.com

def postMessage(message):
    contents = {"message":message,"password":"passwordpassword"}
    params = urllib.urlencode(contents)
    d = urllib.urlopen(base_url+"tenkoma",params)
    return d.readlines()
>>> postMessage('hoge')
['{"error":"","id":null,"result":"posted"}']

日本語が化けた