class Quandora::Users
Public Instance Methods
create(args)
click to toggle source
# File lib/quandora/users.rb, line 7 def create(args) body = { "type": "post-user", "data": { "email": args["email"], "password": args["password"], "firstName": args["first_name"], "lastName": args["last_name"], "title": args["title"], "isManager": args["is_manager"], "aliases": args["aliases"], "groups": args["groups"] } } resp = @conn.post(@api) do |req| req.body = body.to_s req.headers['Content-Type'] = 'application/json' end end
me()
click to toggle source
API LIST: Me, Index, Show
# File lib/quandora/users.rb, line 3 def me resp = @conn.get("#{@api}/me") end