Skip to content

Loading…

Adding users search wrapper #11

Merged
merged 1 commit into from

2 participants

@yopefonic

The /users/search.json allows for searching of users on twitter. The added users-search wrapper adds support for features defined in the API documentation.

API reference: https://dev.twitter.com/docs/api/1/get/users/search

@mattrepl mattrepl merged commit 6400586 into mattrepl:master
@mattrepl
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/twitter.clj
View
9 src/twitter.clj
@@ -571,6 +571,15 @@ take any required and optional arguments and call the associated Twitter method.
[]
(comp #(:content %) status-handler))
+(def-twitter-method users-search
+ :get
+ "api.twitter.com/1/users/search.json"
+ [:q]
+ [:page
+ :per_page
+ :include_entities]
+ (comp #(:content %) status-handler))
+
(def-twitter-method search
:get
"search.twitter.com/search.json"
Something went wrong with that request. Please try again.