search for: request_token

Displaying 9 results from an estimated 9 matches for "request_token".

2013 Jan 29
0
How to stub a class inside a module with Mocha in Ruby?
...options[:proxy] @debug = options[:debug] @api_version = options[:api_version] || ''1'' @api_host = options[:api_host] || ''api.twitter.com'' @search_host = options[:search_host] || ''search.twitter.com'' end ... def request_token(options={}) consumer(:secure => true).get_request_token(options) end end The request_token is the method I''m trying to stub. And this is what I''ve done in Sinatra which obviously doesn''t work. before ''/'' do @twitterClient = TwitterOAut...
2010 Jul 01
6
Close Modalpopup with RJS
...9;'); } main page <%= link_to "login via twitter", {:controller => "sessions/create"}, :onclick => "OpenModalPopUP()" %> sessions/create def create oauth.set_callback_url(finalize_session_url) session[''rtoken''] = oauth.request_token.token session[''rsecret''] = oauth.request_token.secret redirect_to oauth.request_token.authorize_url end sessions/finalize def finalize oauth.authorize_from_request(session[''rtoken''], session[''rsecret''], params[:oauth_verifier]...
2014 Nov 01
5
Pregunta (creo que simple) para usar twitteR
Hola Alfonso, buenos días: Lo he probado pero no me va, eso 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,...
2013 Nov 22
1
Descargar tweets con package twitteR
...t;digest") require("Rcpp") require("RColorBrewer") 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=c...
2014 Nov 01
2
Pregunta (creo que simple) para usar twitteR
...ter, soy un poco novato en esto y por esto lanzo la pregunta. Aunque ya 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,...
2012 Nov 08
1
twitteR return error message
...the packge twitteR when using this package I came across several problems, 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(consu...
2010 Feb 12
0
Twitter - oauth gem - not getting callback
I redirect the user of my application to Twitter for oauth style authentication using my app''s request_token. The user is able to enter username and password on Twitter''s page BUT then, instead of calling back my application, Twitter displays a page -------------------------------------------------------------------------------------------------------------------------------------- You''...
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
2013 Jul 25
0
Error al utilizar twitteR
...so que yo sigo es el siguiente: #Se definen los datos de la app registrada en twitter dev 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 volve...