Sha256: 062096c193b786bcd0c544b3803abe0b65c6b1a8cf5ebf0f442a90b6be23220b
Contents?: true
Size: 1.22 KB
Versions: 6
Compression:
Stored size: 1.22 KB
Contents
# This file was auto-generated by lib/generators/tasks/generate.rb module Slack module Endpoint module Oauth # # Exchanges a temporary OAuth code for an API token. # # @option options [Object] :client_id # Issued when you created your application. # @option options [Object] :client_secret # Issued when you created your application. # @option options [Object] :code # The `code` param returned via the OAuth callback. # @option options [Object] :redirect_uri # This must match the originally submitted URI (if one was sent). # @see https://api.slack.com/methods/oauth.access # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/oauth.access.md # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/oauth.access.json def oauth_access(options={}) throw ArgumentError.new("Required arguments :client_id missing") if options[:client_id].nil? throw ArgumentError.new("Required arguments :client_secret missing") if options[:client_secret].nil? throw ArgumentError.new("Required arguments :code missing") if options[:code].nil? post("oauth.access", options) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems