Sha256: ff12c85bf7f6480a458359e162803d287b3d9158ec2c275aabb1b4b14f9bd6a1
Contents?: true
Size: 1.31 KB
Versions: 2
Compression:
Stored size: 1.31 KB
Contents
# This file was auto-generated by lib/generators/tasks/generate.rb module Slack module Endpoint module Oauth # # This method allows you to exchange a temporary OAuth code for an API access token. # This is used as part of the OAuth authentication flow. # # @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/aki017/slack-api-docs/blob/master/methods/oauth.access.md # @see https://github.com/aki017/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
slack-api-1.6.0 | lib/slack/endpoint/oauth.rb |
slack-api-1.5.0 | lib/slack/endpoint/oauth.rb |