Sha256: b1f4708ce2884841749454038f5afbc0bcb6a1c0d21d0782e6419d7cafedda09
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
class Quandora::Users < Quandora::Request # API LIST: Me, Index, Show def me resp = @conn.get("#{@api}/me") end def create(args) args = args.stringify_keys 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quandora-0.3.0 | lib/quandora/users.rb |