This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTICE: | |
# JsonMarkup returns Hash, not Json text. | |
# You need to call to_json for returned target. | |
# USAGE | |
# def to_markup(markup, options = {}) | |
# markup = case format | |
# when :xml | |
# Builder::XmlMarkup.new | |
# when :json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# environment.rb | |
VERSION_DEFAULT = Version1 | |
# user.rb | |
class User | |
include Builder::UserMarkup | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/http' | |
require 'rubygems' | |
require 'json' | |
params = { | |
:context => { | |
:country => 'ALL', | |
:language => 'ja' | |
}, | |
:gadgets => [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RequestToken < OauthToken | |
attr_accessor :provided_oauth_verifier | |
def authorize!(user) | |
return false if authorized? | |
self.user = user | |
self.authorized_at = Time.now | |
# self.verifier=OAuth::Helper.generate_key(16) | |
self.verifier=OAuth::Helper.generate_key[0,20] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'oauth' | |
htt_method = :get | |
endpoint = 'http://oauth.service-provider.com/oauth/request_token' | |
consumer_secret = 'CONSUMER_SECRET' | |
token_secret = 'ACCESS_TOKEN_SECRET' | |
request_params = { | |
# ADD ALL PARAMETERS HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module OAuth | |
class RequestToken | |
def authenticate_url | |
params = (params || {}).merge(:oauth_token => self.token) | |
build_authorize_url(consumer.authenticate_url, params) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From d1dd858ec3904d58c096bd0b31ab0652e754e3fa Mon Sep 17 00:00:00 2001 | |
From: nov matake <[email protected]> | |
Date: Fri, 12 Mar 2010 20:21:24 +0900 | |
Subject: [PATCH] =?UTF-8?q?changed=20":"=20to=20"=E3=80=82"=20at=20the=20end=20of=20sentences | |
=20tried=20to=20simplify=20a=20few=20sentences?= | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4a60060d69750362311ef58a2fff471d6d58970b Mon Sep 17 00:00:00 2001 | |
From: nov matake <[email protected]> | |
Date: Tue, 16 Mar 2010 22:05:23 +0900 | |
Subject: [PATCH] reviewed 1.3 to 2.1 | |
this commit needs to be confirmed by all translators. | |
--- | |
draft-hammer-oauth-10.xml | 45 +++++++++++++++++++++++---------------------- | |
1 files changed, 23 insertions(+), 22 deletions(-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 9a24205333b0cdf880abc1e4246a5ec8c89db48d Mon Sep 17 00:00:00 2001 | |
From: nov matake <[email protected]> | |
Date: Tue, 16 Mar 2010 23:37:25 +0900 | |
Subject: [PATCH] reviewed 3 & 3.1 | |
--- | |
draft-hammer-oauth-10.xml | 28 ++++++++++++++-------------- | |
1 files changed, 14 insertions(+), 14 deletions(-) | |
diff --git a/draft-hammer-oauth-10.xml b/draft-hammer-oauth-10.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 6fc26a55c5f1d10ddaba15c751f29d830bfd947d Mon Sep 17 00:00:00 2001 | |
From: nov matake <[email protected]> | |
Date: Fri, 19 Mar 2010 12:02:25 +0900 | |
Subject: [PATCH] reviewed 3.2 & 3.3 & 3.4 | |
--- | |
draft-hammer-oauth-10.xml | 45 ++++++++++++++++++++++++--------------------- | |
1 files changed, 24 insertions(+), 21 deletions(-) | |
diff --git a/draft-hammer-oauth-10.xml b/draft-hammer-oauth-10.xml |
OlderNewer