aboutsummaryrefslogtreecommitdiffstats
path: root/fancy_bear/contextio/auth.rb
blob: 174648a623da9e2ce1bd616313c140a8244cbe74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'contextio'

module FancyBear
  module ContextIO
    
    class Auth
      def initialize
        @contextio = ::ContextIO.new(API_KEY, API_SECRET)
      end
      
      def connect(callback_url)
        connection_token = @contextio.connect_tokens.create(callback_url)
        connection_token.browser_redirect_url
      end
    end
    
  end
end