MUCI/usosapi-python

What is the format of the kwargs for the get method?

Closed this issue · 2 comments

It's unclear to me what exactly should be provided as kwargs for the get method. A set - then what datatype should be used? Should it be strings in the form "name=foo"?

Some example how to use the get method would be useful ;)

Here's an example of retrieving a list of users:

self.api_connection.get('services/users/search2', lang='pl', query=search_phrase, start=start,
                                                  among='current_teachers', num=20, 
                                                  fields="next_page|items[user[id|first_name|"
                                                         "last_name|middle_names|"
                                                         "profile_url|employment_positions|"
                                                         "photo_urls[50x50]]]")

Does this piece of code explain enough?

This explains everything ;) Thanks