Module: AngellistApi::Client::Messages
- Included in:
- AngellistApi::Client
- Defined in:
- lib/angellist_api/client/messages.rb
Overview
Defines methods related to URLs
Instance Method Summary collapse
-
#get_messages(options = {}) ⇒ Object
Returns threads that the authenticated user is involved in.
-
#post_messages(options = {}) ⇒ Object
Creates a new message from the authenticated user to the other participant of the given thread.
Instance Method Details
#get_messages(options = {}) ⇒ Object
Returns threads that the authenticated user is involved in. A “thread” is a conversation between two users, where each message is tagged with the same thread_id. If the authenticated user has any unread messages in the thread, the viewed attribute will be false. Requires scope “message”.
27 28 29 |
# File 'lib/angellist_api/client/messages.rb', line 27 def (={}) get("1/messages", ) end |
#post_messages(options = {}) ⇒ Object
Creates a new message from the authenticated user to the other participant of the given thread. Returns the new message on success. Requires scope “message”.
41 42 43 |
# File 'lib/angellist_api/client/messages.rb', line 41 def (={}) post("1/messages", ) end |