Sha256: 2f0b7c694200cd916e2a3be1632795e18e90dabf8b8f245f364ac2caa92c758b
Contents?: true
Size: 1.78 KB
Versions: 37
Compression:
Stored size: 1.78 KB
Contents
module KineticSdk class Core # Add an OAuth client # # @param options [Hash] oauth client properties # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties def add_oauth_client(options, headers=default_headers) @logger.info("Adding the \"#{options['clientId']}\" OAuth client") post("#{@api_url}/oauthClients", options, headers) end # Find OAuth client # # @param client_id [String] - oauth client identifier # @param params [Hash] Query parameters that are added to the URL, such as +include+ # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties def find_oauth_client(client_id, params={}, headers=default_headers) @logger.info("Finding OAuth Client \"#{client_id}\"") get("#{@api_url}/oauthClients/#{encode(client_id)}", params, headers) end # Update an OAuth client # # @param client_id [String] - oauth client identifier # @param options [Hash] oauth client properties # @param headers [Hash] hash of headers to send, default is basic authentication and accept JSON content type # @return [KineticSdk::Utils::KineticHttpResponse] object, with +code+, +message+, +content_string+, and +content+ properties def update_oauth_client(client_id, options, headers=default_headers) @logger.info("Updating the \"#{client_id}\" OAuth client") put("#{@api_url}/oauthClients/#{encode(client_id)}", options, headers) end end end
Version data entries
37 entries across 37 versions & 1 rubygems