Skip to content

Commit e20e7a8

Browse files
mikemdrone29a
authored andcommitted
Add functions for users/lookup API calls
1 parent f2c0859 commit e20e7a8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/twitter.clj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,20 @@ take any required and optional arguments and call the associated Twitter method.
164164
[]
165165
(comp #(:content %) status-handler))
166166

167+
(def-twitter-method lookup-users-by-id
168+
:get
169+
"api.twitter.com/1/users/lookup.json"
170+
[:user-id]
171+
[]
172+
(comp #(:content %) status-handler))
173+
174+
(def-twitter-method lookup-users-by-name
175+
:get
176+
"api.twitter.com/1/users/lookup.json"
177+
[:screen-name]
178+
[]
179+
(comp #(:content %) status-handler))
180+
167181
(def-twitter-method direct-messages
168182
:get
169183
"api.twitter.com/1/direct_messages.json"

0 commit comments

Comments
 (0)