Displaying 17 results from an estimated 17 matches for "access_token".
2010 Sep 17
0
ruby's oauth2 grant_type
Hi, i started using oauth2 gem by intridea
(http://github.com/intridea/oauth2) and don''t know how to fix this
problem. I have developed both client and server and on request for
access_token i see no grant_type parameter. My code from client callback
controller
class CallbackController < Devise::OauthCallbacksController
def accounts
access_token = accounts_config.access_token_by_code(params[:code])
@user = User.find_for_accounts_oauth(access_token,
signed_in_resource)...
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
...ontent-Disposition:
form-data; name=\"image\";
filename=\"/home/user/public/direct/fb_images/neEZYMAnBI.jpg\"\r\nContent-Type:
application/octet-stream\r\n",
@tempfile=#<File:/app/tmp/RackMultipart20110818-1-18qnwtj>>,
"method"=>"post", "access_token"=>"my_access_token", "format"=>"json"}
I tried to use:
require ''net/http/post/multipart''
url =
URI.parse(''https://graph.facebook.com/me/photos?access_token=#{params[:access_token]}'')
File.open(params[@tempf...
2011 Sep 26
2
undefined method `options' for #<EventMachine::HttpClien
Hi , I am writing a rake task to consume twitter stream API. The task
contains the following code:
consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, :site =>
''http://twitter.com'')
access_token =
OAuth::AccessToken.new(consumer,ACCESS_TOKEN,ACCESS_TOKEN_SECRET)
oauth_params = {:consumer => consumer, :token => access_token}
EventMachine.run do
# now, let''s subscribe to twitter site stream
# check informaiton on twitter site
http =
EventMachine::H...
2020 Jul 08
1
Dovecot - Xoauth2 - keycloak
Hello,
Still trying to make roundcube / Dovecot works with Keycloak.
Dovecot can't seem to validate the access_token that Roundcube gave.
-----
Jul 08 20:48:05 auth: Debug: http-client[1]: request [Req1: GET
https://my.keycloak.host/auth/realms/test_saml/protocol/openid-connect/tokeneyJhbGciOiJFUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJEZzR2aWtndzN2MWVpQVgxMU10YkFIaXRaUnM2R2RlVzN3b3hGTTBpd1NnIn0.eyJleHAiOjE1OTQyNDE0...
2014 Nov 01
5
Pregunta (creo que simple) para usar twitteR
...sí ha cambiado el error, el código utilizado es:
library(ROAuth)library(twitteR)
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem")
reqURL <- "https://api.twitter.com/oauth/request_token"accessURL <- "http://api.twitter.com/oauth/access_token"authURL <- "http://api.twitter.com/oauth/authorize"consumerKey <- "Hola_amigo"consumerSecret <- "fjroar"twitCred <- OAuthFactory$new(consumerKey=consumerKey, consumerSecret=consumerSecret, request...
2013 Nov 22
1
Descargar tweets con package twitteR
...er")
library(twitteR)
library(tm)
library(wordcloud)
library(RColorBrewer)
library(bitops)
library(ROAuth)
library(RCurl)
library(digest)
library(rjson)
library(Rcpp)
requestURL <- "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.com/oauth/authorize"
consumerKey = "XXXXXXXXXXXXXXXXXXXXXXXXXX"
consumerSecret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=consumerSec...
2014 Nov 01
2
Pregunta (creo que simple) para usar twitteR
...a me han ayudado y me han pasado alguno link del pasado, aún no consigo dar con la solución que seguro es algo que se me escapa
He usado este código
library(ROAuth)library(twitteR)
reqURL <- "https://api.twitter.com/oauth/request_token"accessURL <- "http://api.twitter.com/oauth/access_token"authURL <- "http://api.twitter.com/oauth/authorize"consumerKey <- "Hola_amigo"consumerSecret <- "fjroar"twitCred <- OAuthFactory$new(consumerKey=consumerKey, consumerSecret=consumerSecret, request...
2010 Jul 01
6
Close Modalpopup with RJS
...s[:oauth_verifier])
session[''rtoken''] = nil
session[''rsecret''] = nil
profile = Twitter::Base.new(oauth).verify_credentials
user = User.find_or_create_by_screen_name(profile.screen_name)
user.update_attributes({
:atoken => oauth.access_token.token,
:asecret => oauth.access_token.secret,
})
sign_in(user)
# page << "window.close()"
redirect_to session[:return_to] rescue redirect_to :controller =>
"home"
# redirect_to :controller => "sessions/autoclose"
end
As you can see,...
2010 Dec 08
0
how to get access token facebook
i am using facebooker
and i have session keys
need to use Graph API that requires access_token
Please suggest me how to get that or how to exchange session keys
into access_token of all users
Thanks in advance
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39...
2012 Oct 16
0
Rails 3 + fb_graph how to get access token to post to my own Facebook page
...page. I have
code that works, but it uses an access token that only works for a
couple of hours. And it is very annoying to refresh this access token a
couple of times a day. So I registrated for a FB app. I now have:
my_app = FbGraph::Application.new("App ID");
acc_tok = my_app.get_access_token("App Secret");
me = FbGraph::User.me(acc_tok)
me.fetch
me.accounts
account = me.accounts.select {|account| account if account.name ==
"BoaJobs.com"}.first
page = FbGraph::Page.new(account.identifier)
note = page.note!(:access_token => account.access_token, :subj...
2013 May 30
0
Import friends
...a message to particular user this message send all
my friends. how can i solved it. Please help me.
this is my code
def facebook_invite
friend_id= params[:mail]
logger.debug(''CURRENT'')
logger.debug( current_user.authentications[0][''token''] )
if( access_token = current_user.authentications[0][''token''] )
@graph = Koala::Facebook::GraphAPI.new(access_token)
*@graph.get_connections("me", "mutualfriends/#{friend_id}")*
begin
*@graph.put_object("me", "feed", :message => &q...
2012 May 01
1
uninitialized constant LoginController in Ruby
...:parse_facebook_cookies
def parse_facebook_cookies
@facebook_cookies =
Koala::Facebook::OAuth.new.get_user_info_from_cookie(cookies)
end
end
This is my login_controller.rb
class LoginController < ApplicationController
def index
graph =
Koala::Facebook::GraphAPI.new(@facebook_cookies["access_token"])
@likes = graph.get_connections("me", "likes")
end
I am using Rails 3 and the error I am getting is this: uninitialized
constant LoginController in Ruby.
I did rake routes and got this:
home_index GET /home/index(.:format) home#index
login_index GET /login/index...
2012 Nov 08
1
twitteR return error message
...can anybody help me
on those problems?
Many Thanks
rm(list=ls())
library(bitops)
library(RCurl)
library(rjson)
library(twitteR)
library(digest)
library(ROAuth)
requestURL <- "https://api.twitter.com/oauth/request_token"
accessURL = "https://api.twitter.com/oauth/access_token"
authURL = "https://api.twitter.com/oauth/authorize"
consumerKey = "**************"
consumerSecret = "********************"
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=con...
2012 Jul 08
0
getting company logo from LinkedIn api
am using linked-in API for getting some information from linked-in. so
here i using like this
@response =
@access_token.get(''http://api.linkedin.com/v1/people/~:(id,phone-numbers,first-name,last-name,skills,positions:(company:(name,id)))'',
''x-li-format'' => ''json'').
so i need to get the company logo from my current and previous companies.
how to add the logo...
2013 Jul 24
2
Error al utilizar twitteR
Si, Carlos, gracias. Pero desafortunadamente el link con el PDF no funciona
:( --JIV
Sent from my phone. Please excuse my brevity and misspelling.
On Jul 24, 2013, at 4:51 PM, Carlos Ortega <cof@qualityexcellence.es> wrote:
Hola,
¿Viste la sugerencia/ayuda en StackOverflow?:
http://stackoverflow.com/questions/17408930/twitter-first-example
Saludos,
Carlos Ortega
2020 Feb 14
0
Dovecot Proxy - Oauth2 mech add custom fields
...ca-certificates.crt
active_attribute = active
active_value = true
scope = email
send_auth_headers = yes
debug = yes
rawlog_dir = /LOGS/imap/oauth2/
client_id = imap-client
client_secret = 99e26b26-0f2a-4b64-8f57-c0ca2147d3a0
pass_attrs = host=192.160.10.4 proxy=y proxy_mech=xoauth2 pass=%{oauth2:access_token}
2013 Jul 25
0
Error al utilizar twitteR
...v
tw <- OAuthFactory$new(consumerKey="aquí consumerkey",
consumerSecret="aqui consumer secret",
requestURL="https://api.twitter.com/oauth/request_token
",
accessURL="https://api.twitter.com/oauth/access_token",
authURL="https://api.twitter.com/oauth/authorize")
#se genera un acceso de la app a la api. Aquí es engorroso porque se ha de
copiar la url generada en un navegador y volver a pegar en R el código de
acceso
tw$handshake()
#Se guarda para poderlo utilizar cuan...