Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fetch twitter message and put it into the room

  • Loading branch information...
commit 22207fbe0fd6e6cbd20d0f70c772c0e806c1fdc0 1 parent 72423a6
@rhymes authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 pinder/room.py
View
12 pinder/room.py
@@ -70,17 +70,21 @@ def transcript(self, date=None):
return self._get(transcript_path)['messages']
def speak(self, message):
- "Sends a message to the room. Returns the message data."
+ "Sends a message to the room. Returns the message content."
return self._send(message, type_='TextMessage')['message']
def paste(self, message):
- "Pastes a message to the room. Returns the message data."
+ "Pastes a message to the room. Returns the message content."
return self._send(message, type_='PasteMessage')['message']
def sound(self, message):
- "Plays a sound into the room. Returns the message data."
+ "Plays a sound into the room. Returns the message content."
return self._send(message, type_='SoundMessage')['message']
-
+
+ def fetch_tweet(self, twitter_status_url):
+ "Fetches a tweet from a Twitter status URL. Returns the message content."
+ return self._send(twitter_status_url, type_='TweetMessage')['message']
+
def update(self, name, topic):
"Updates name and/or topic of the room."
data = {'room': {'name': name, 'topic': topic}}
Please sign in to comment.
Something went wrong with that request. Please try again.