Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add search example

  • Loading branch information...
commit bf5d6a646120103f6c4383de650b646d80155325 1 parent 5b12a6e
@jsundram jsundram authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 README.txt
View
12 README.txt
@@ -1,8 +1,18 @@
This is a fork of abrenzel's python wrapper for the linkedin api: https://github.com/mrgaaron/LinkedIn-Client-Library/
-His is very nice, but the search stuff is broken. Search should work here. It's a bit hacky.
+His is very nice, but the search stuff is broken. Search should work here, although it's a bit hacky.
+I've added support for field selector strings, too.
See the docs here:
http://developer.linkedin.com/docs/DOC-1191#
+
+Here's an example of how to use the search:
+
+from liclient import LinkedInAPI
+api = LinkedInAPI(API_KEY, SECRET_KEY)
+params = {'first-name': 'John', 'last-name': 'Smith'}
+field_selector_string = '(people:(id,first-name,last-name,headline,public-profile-url),num-results)'
+results = api.search(ACCESS_TOKEN, params, field_selector_string)
+# do stuff with results
Dependencies:
lxml
Please sign in to comment.
Something went wrong with that request. Please try again.