Sha256: 7e40ba859f54088e535d5190356cd408ae82c9087c561055e8484146e663bfea
Contents?: true
Size: 782 Bytes
Versions: 6
Compression:
Stored size: 782 Bytes
Contents
module SynapsePay class UserEndpoint < APIEndpoint def retrieve(params={}, headers={}) method = APIMethod.new(:post, "/user/show", params, headers, self) json = @client.execute(method) User.new(json[:user], method, @client) end def search(query, params={}, headers={}) params = ParamsBuilder.merge({ :query => query, }, params) method = APIMethod.new(:post, "/user/customers", params, headers, self) json = @client.execute(method) APIList.new(:User, json[:customers], method, @client) end def update(params={}, headers={}) method = APIMethod.new(:post, "/user/edit", params, headers, self) json = @client.execute(method) User.new(json[:user], method, @client) end end end
Version data entries
6 entries across 6 versions & 1 rubygems