Jeff Posnick
fb67a021e7
Added Google::APIClient::FileStorage, to save OAuth 2 credentials to disk
...
This is a (potentially rough) bit of code to persist OAuth 2
credentials to disk, similar to
http://google-api-python-client.googlecode.com/hg/docs/epy/oauth2client .
file.Storage-class.html
It can be used in the following manner, which roughly translates to
what the Python client library code looks like.
file_storage = Google::APIClient::FileStorage.new("#{$0}-oauth2.json")
if file_storage.authorization.nil?
client_secrets = Google::APIClient::ClientSecrets.load
flow = Google::APIClient::InstalledAppFlow.new(
:client_id => client_secrets.client_id,
:client_secret => client_secrets.client_secret,
:scope => [SCOPE1, SCOPE2]
)
client.authorization = flow.authorize(file_storage)
else
client.authorization = file_storage.authorization
end
2013-05-29 15:31:44 -04:00
Steven Bazyl
aa7a254d23
Allow options when executing batch requests ( #48 )
2013-05-13 15:19:25 -07:00
Steven Bazyl
794c6a90f7
Upgrade to Faraday 0.9 (fixes params encoding problems)
2013-05-13 14:03:49 -07:00
Bob Aman
9cd5601134
Merge pull request #49 from dillonkearns/patch-1
...
Add syntax highlighting to README
2013-04-29 02:14:22 -07:00
Dillon Kearns
ed0a8921c0
Add syntax highlighting to README
2013-04-28 19:37:19 -07:00
Steve Bazyl
cc69b49b0e
Merge pull request #47 from nevir/patch-2
...
Consider dropping sudo from "sudo gem install" in example
2013-04-20 23:14:11 -07:00
Steven Bazyl
0e1ac4ea6a
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2013-04-18 20:57:32 -07:00
Bob Aman
e2991a0fa5
Merge pull request #46 from nevir/patch-1
...
Full jruby and rubinius coverage
2013-04-18 00:55:53 -07:00
Ian MacLeod
a267e3453f
Drop sudo from gem install
2013-04-17 22:50:58 -07:00
Ian MacLeod
747df1ad8b
Full jruby and rubinius coverage
2013-04-17 22:46:53 -07:00
Steve Bazyl
2a6cc8e09e
Merge pull request #43 from sanemat/feature/rubygems-org
...
Replace rubygems source
2013-04-15 11:03:09 -07:00
sanemat
1d6bc0df18
All tests pass in ruby 2.0
2013-04-14 22:51:24 +09:00
sanemat
c4c16ad682
Change rubygems source
...
This solves deprecated message below:
$ bundle install
or
$ bundle exec rake spec:all
The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org ' if possible, or
'http://rubygems.org ' if not.
2013-04-14 22:48:05 +09:00
Steven Bazyl
4241e2c99e
Update homepage link
2013-04-08 16:07:58 -07:00
Steven Bazyl
bfafe1b0c8
Minor release
2013-03-25 21:37:52 -07:00
Steven Bazyl
4dc0665ccc
Update autoparse version
2013-03-25 21:32:16 -07:00
Steven Bazyl
e8b46f3cc2
Remove confusing alternate install option
2013-03-25 21:31:06 -07:00
Steven Bazyl
d9033a4f2a
Remove broken require
2013-03-18 12:31:59 -07:00
Steven Bazyl
0b45f0d8b6
Check for existance of Railties (instead of Rails) before loading railtie)
2013-03-18 12:22:12 -07:00
Steven Bazyl
34354325b8
Add contributor instuctions to docs
2013-03-17 16:33:44 -07:00
Steven Bazyl
2c38f9fd09
Fix referesh of oauth token when passing credentials as param
2013-03-17 16:33:27 -07:00
Steven Bazyl
fee207e8bd
Add guide for would-be contributors
2013-02-15 15:21:21 -08:00
Steven Bazyl
889102f6fb
Mark failing test as pending
2013-02-15 14:25:25 -08:00
Steven Bazyl
4289ab5b5f
restore irb import
2013-02-15 13:20:30 -08:00
Steven Bazyl
ef4c5c1f2f
Fix URI in batched request to allow query parameters
2013-02-15 13:13:58 -08:00
Steven Bazyl
f421551018
Fix duplication of parameters in qeuery string
2013-01-22 22:14:50 -08:00
Steven Bazyl
0dafa5e4ee
Minor release for updating signet
2013-01-18 09:21:13 -08:00
Steven Bazyl
f369139b32
Minor release to fix service account impersonation
2013-01-14 17:00:58 -08:00
Bob Aman
47bdbc124e
Merge pull request #23 from layby42/master
...
Pull request for #22
2013-01-12 09:47:15 -08:00
Oxana Goutnik
7d204ac507
fix for #22 impersonation
2013-01-12 10:29:47 -05:00
Steven Bazyl
280cdff314
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2013-01-09 12:52:06 -08:00
Steven Bazyl
1636ed0f9d
Remove moderate API refs since API no longer exists, re-enable lattitude
2013-01-09 12:51:50 -08:00
Bob Aman
06ad346e9d
Merge pull request #21 from sanemat/feature/ruby-2-0-0
...
Add Ruby2.0.0 build in Travis-ci, and allowed to fail
2013-01-09 12:26:08 -08:00
sanemat
6cb3c6b6c4
Add Ruby2.0.0 build in Travis-ci, and allowed to fail
...
http://about.travis-ci.org/docs/user/build-configuration/#Rows-That-are-Allowed-To-Fail
2013-01-10 00:34:25 +09:00
Steve Bazyl
ee6f8ae6f9
Merge pull request #20 from simplymeasured/feature/make-autorefresh-of-token-optional
...
incorporate style feedback from @sporkmonger on #19 ab23fe7539
2013-01-04 16:59:20 -08:00
Steven Bazyl
361c8ccc74
Update changelog
2013-01-04 16:49:46 -08:00
Steven Bazyl
55b4a94715
Fix odd conflict with VERSION & logger
2013-01-04 16:49:27 -08:00
Steven Bazyl
7feb61f70d
Update changelog/gemspec
2013-01-04 16:15:27 -08:00
Steven Bazyl
8ce4d052fe
Add oauth helper for installed apps, update CLI
2013-01-04 16:14:59 -08:00
Steven Bazyl
1d7315ee9b
Sprinkle of logging
2013-01-04 16:14:14 -08:00
Steven Bazyl
1601c616fe
Update JWT example
2013-01-04 16:13:03 -08:00
Ryan Biesemeyer
84ddf9ba3c
incorporate style feedback from @sporkmonger on ab23fe7539
2013-01-04 21:50:19 +00:00
Steven Bazyl
31a78788bd
Add railtie
2013-01-02 20:07:17 -08:00
Steven Bazyl
7e3cacdb0e
Define custom load/dump for serializing API instances
2013-01-02 16:13:26 -08:00
Steven Bazyl
be3b436f58
Fix JWT example in docs
2013-01-02 16:12:47 -08:00
Steven Bazyl
a631c4003a
Read keyfile in binary mode
2013-01-02 12:59:43 -08:00
Steven Bazyl
1f0ea6338e
Remove stray output to STDOUT
2013-01-02 12:55:52 -08:00
Steven Bazyl
250e9e7b2d
Merge branch 'master' of https://github.com/google/google-api-ruby-client
2013-01-02 11:51:15 -08:00
Steven Bazyl
71fbe4a825
Use JWT support in signet, ignore broken PKCS12 tests on jruby
2013-01-02 11:50:45 -08:00
Steven Bazyl
c793138209
Add application name to client, update style of assigning client to match other recent changes
2012-12-30 11:27:45 -08:00