Published in: Python
import rest class Connection: url = "https://twitter.com" def __init__(self, username, password): self.conn = rest.Connection(self.url, username, password) self.status = Status(self.conn) class Status: def __init__(self, conn): self.conn = conn def update(self, message): res = self.conn.request_post("statuses/update.xml", {"status": message})
You need to login to post a comment.
