Try the redirection for authentification. To no avail, yet.
This commit is contained in:
parent
e5bf47aa28
commit
8714650d04
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
require 'erb' # for url_encode()
|
||||||
require 'net/http'
|
require 'net/http'
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
||||||
|
|
@ -35,7 +36,6 @@ class RepostsController < ApplicationController
|
||||||
#history = YAML.load('history.yml', :safe => true)
|
#history = YAML.load('history.yml', :safe => true)
|
||||||
#lastrepostid = history["lastrepost"]
|
#lastrepostid = history["lastrepost"]
|
||||||
#latestid = lastrepostid
|
#latestid = lastrepostid
|
||||||
|
|
||||||
# fetch all mentions since last one
|
# fetch all mentions since last one
|
||||||
## API - fetch( since_id=previous max_id )
|
## API - fetch( since_id=previous max_id )
|
||||||
#new_mentions.each do | post |
|
#new_mentions.each do | post |
|
||||||
|
|
@ -45,5 +45,6 @@ class RepostsController < ApplicationController
|
||||||
|
|
||||||
# store latest repost for next time
|
# store latest repost for next time
|
||||||
# TODO insert into reposts values("karlsruher", post.id, latestid)
|
# TODO insert into reposts values("karlsruher", post.id, latestid)
|
||||||
|
redirect_to ERB::Util.url_encode("https://account.app.net/oauth/authenticate?client_id=aeTtXn6khX4XwvqHYH4J3xzzjDQmW5TJ&response_type=code&redirect_uri=https://alpha.app.net/karlsruher&scope=stream")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue