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