<s> from libsaas import http , parsers <EOL> from libsaas . services import base <EOL> class Authorizations ( base . HierarchicalResource ) : <EOL> path = '<STR_LIT>' <EOL> @ base . apimethod <EOL> def get ( self , email , password ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> return http . Request ( '<STR_LIT:POST>' , self . get_url ( ) , params ) , parsers . parse_json <EOL> class UserConnections ( base . HierarchicalResource ) : <EOL> path = '<STR_LIT>' <EOL> @ base . apimethod <EOL> def get ( self ) : <EOL> """<STR_LIT>""" <EOL> return http . Request ( '<STR_LIT:GET>' , self . get_url ( ) ) , parsers . parse_json <EOL> class UsersResource ( base . RESTResource ) : <EOL> path = '<STR_LIT>' <EOL> def delete ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> def update ( self , * args , ** kwargs ) : <EOL> raise base . MethodNotSupported ( ) <EOL> class Users ( UsersResource ) : <EOL> @ base . apimethod <EOL> def find ( self , term ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> return http . Request ( '<STR_LIT:GET>' , url , params ) , parsers . parse_json <EOL> class User ( UsersResource ) : <EOL> @ base . apimethod <EOL> def merge ( self , merge_with_id ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> return http . Request ( '<STR_LIT:POST>' , url , params ) , parsers . parse_json <EOL> @ base . apimethod <EOL> def activities ( self , start = None , limit = None , done = None , exclude = None ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> return http . Request ( '<STR_LIT:GET>' , url , params ) , parsers . parse_json <EOL> @ base . apimethod <EOL> def followers ( self ) : <EOL> """<STR_LIT>""" <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> return http . Request ( '<STR_LIT:GET>' , url ) , parsers . parse_json <EOL> @ base . apimethod <EOL> def updates ( self , start = None , limit = None ) : <EOL> """<STR_LIT>""" <EOL> params = base . get_params ( None , locals ( ) ) <EOL> url = '<STR_LIT>' . format ( self . get_url ( ) ) <EOL> return http . Request ( '<STR_LIT:GET>' , url , params ) , parsers . parse_json </s>
