def get(self):
        entity = status.load_entity()
        self.response.out.write("<pre>" + entity.json_string + "</pre>")
        self.response.out.write(
            "<form action='/status/' method='POST'><label for='json_status'>Change</label><textarea name='json_status' rows='2' cols='100'>"
            + entity.json_string +
            "</textarea><input type='submit' value='update status'/></form>")

        self.response.out.write(
            "<pre>" + json.dumps(twitter.get_rate_limit_status(True)) +
            "</pre>")
Esempio n. 2
0
  def get(self):
    entity = status.load_entity()
    self.response.out.write("<pre>" + entity.json_string +  "</pre>")
    self.response.out.write("<form action='/status/' method='POST'><label for='json_status'>Change</label><textarea name='json_status' rows='2' cols='100'>" + entity.json_string + "</textarea><input type='submit' value='update status'/></form>")

    self.response.out.write("<pre>" + json.dumps(twitter.get_rate_limit_status(True)) + "</pre>");
Esempio n. 3
0
import twitter

print twitter.get_rate_limit_status()

mentions = twitter.get_mentions()
assert len(mentions) > 1

tweets = twitter.get_tweets('markovator_dev')
assert len(tweets) > 1

print("Tests passed")