From 9f7dfa9233003cb496499dbbcd51ba10d31d3484 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 8 Jun 2014 02:22:14 -0400 Subject: auth.rb: fix authentication method * Fix incorrect variable name * Rename authenticate method because that's not quite what it's doing. It's more like starting the auth process. --- fancy_bear/contextio/auth.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fancy_bear/contextio/auth.rb b/fancy_bear/contextio/auth.rb index b3382b5..174648a 100644 --- a/fancy_bear/contextio/auth.rb +++ b/fancy_bear/contextio/auth.rb @@ -8,9 +8,9 @@ module FancyBear @contextio = ::ContextIO.new(API_KEY, API_SECRET) end - def authenticate(email) - connection_token = @contextio.connect_tokens.create('http://google.com') - connect_tokens.browser_redirect_url + def connect(callback_url) + connection_token = @contextio.connect_tokens.create(callback_url) + connection_token.browser_redirect_url end end -- cgit v1.2.3