lib/ruby/identitas/endpoints/user.rb in ruby-identitas-api-0.4.0 vs lib/ruby/identitas/endpoints/user.rb in ruby-identitas-api-0.5.0
- old
+ new
@@ -5,9 +5,16 @@
def create_user(options = {})
options.merge!({access_token: @token})
endpoint = build_endpoint("/v1/users")
self.class.post(endpoint, query: options)
end
+
+ def invite_user(options = {})
+ options.merge!({access_token: @token})
+ endpoint = build_endpoint("/v1/users/invite")
+ self.class.post(endpoint, query: options)
+ end
+
end
end
end
end