Commit Graph

69 Commits

Author SHA1 Message Date
Steven Bazyl 2c38f9fd09 Fix referesh of oauth token when passing credentials as param 2013-03-17 16:33:27 -07: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 55b4a94715 Fix odd conflict with VERSION & logger 2013-01-04 16:49:27 -08:00
Steven Bazyl 1d7315ee9b Sprinkle of logging 2013-01-04 16:14:14 -08:00
Ryan Biesemeyer 84ddf9ba3c incorporate style feedback from @sporkmonger on ab23fe7539 2013-01-04 21:50:19 +00: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 8f453134d7 Initial logging support 2012-12-30 11:26:18 -08:00
Ryan Biesemeyer ab23fe7539 Make the auto-refresh of tokens configurable and optional; in distributed environments, this allows us to handle token refreshes in a way that does not hammer the auth endpoint. 2012-12-29 00:02:02 +00:00
Steven Bazyl 3d157007f6 Auto-refresh OAuth 2 tokens & retry request on 401 response 2012-10-30 13:18:12 -07:00
Steven Bazyl 8799e3a689 Move request class to its own file 2012-10-10 14:28:46 -06:00
Steven Bazyl e88dabaf4c Update docs re: api_method + allow options in array-style calls 2012-10-10 14:28:46 -06:00
Steven Bazyl 1fca089d62 Mostly doc updates, +remove support for method as string 2012-10-10 14:28:45 -06:00
Steven Bazyl fc45135fcd Continue internal shuffling... 2012-10-10 14:28:45 -06:00
Steven Bazyl 2c6bf97b20 Unify processing of api/resumable/batch requests 2012-10-10 14:25:43 -06:00
Steven Bazyl 5d2a6d4842 Begin consolidation of request building in reference. Further changes coming to simplify batch + media handling 2012-10-10 14:24:25 -06:00
Steven Bazyl 9f51031a00 Consolidate request routing through execute methods 2012-10-10 14:24:25 -06:00
Steven Bazyl e421d1734d Remove embedded version #s, use Gemfile 2012-10-10 14:24:25 -06:00
Bob Aman 11155d3c39 Backwards compatibility for MultiJson. 2012-08-30 12:15:59 +03:00
Steven Bazyl 1ff1a8e355 Issue 47 - Improve error handling on result 2012-08-01 00:28:39 +03:00
Bob Aman 3bc7d52764 Resolving issues introduced by Faraday dependency upgrade. 2012-07-21 13:51:23 +03:00
Bob Aman 5e751681dd Updating dependencies. 2012-07-21 13:51:23 +03:00
Steven Bazyl a9d46c0359 Resolve merge conflict 2012-06-06 17:32:29 -07:00
Steven Bazyl a7b40becc6 Allow credentials on per-request basis 2012-06-06 17:27:20 -07:00
Sergio Gomes a666d52770 Adding batch support 2012-05-16 20:05:24 +01:00
Bob Aman c651d69674 Updated to avoid deprecation of encode and decode methods in multi_json gem. 2012-04-24 14:39:25 +03:00
Bob Aman 7545efddb6 Fixed whitespace issue. 2012-03-02 17:07:35 +01:00
Steven Bazyl 1121bb7fe6 Merge branch 'master' of https://code.google.com/p/google-api-ruby-client 2012-03-01 17:24:14 -08:00
Steven Bazyl b8301b0dd5 Media upload support 2012-03-01 17:23:36 -08:00
Bob Aman 1e5f09a594 Cleaning up the changes made by @vapir. 2012-02-27 12:14:11 +01:00
Ethan 80c41c99fc minor whitespace touchup
gedit's syntax highlighting breaks on the previous
2012-02-22 03:31:17 -05:00
Ethan bd1ce540d4 if ApiClient receives :authorization => false, respect that, and only default to oauth2 if :authorization is omitted 2012-02-22 03:30:59 -05:00
Ethan d59901bf1e add method ApiClient#relative_uri which constructs a full uri from a given relative path, respecting specified protocol, host, and port; and allowing expanded parameters passed through Addressable::Template 2012-02-22 03:30:58 -05:00
Ethan c50f92c50c change ApiClient's configurable host to a configurable baseURI, so that protocol, port, and base path may be overridden in addition to host 2012-02-22 03:30:58 -05:00
Bob Aman 17e540d0de Added ID token verification against server certificate. 2012-02-15 15:23:54 +03:00
Bob Aman 06cdb76670 Updated to replace httpadapter with faraday. 2012-01-27 17:57:57 +03:00
Bob Aman 0bc3d4936b Migrated to MultiJson from JSON gem. 2012-01-05 13:05:56 +03:00
Bob Aman 321533455c Fixed some YARD documentation issues and changed how the user-agent is built. 2011-12-02 16:43:55 +03:00
Bob Aman 92ad3a293a Fixed issue with version and moved version back to 0.3.0. 2011-10-15 11:22:50 +03:00
Bob Aman b869319d1d Added better handling for errors. 2011-09-22 12:21:22 +03:00
Bob Aman 7724b20e9a Changed discovery and directory methods to use the main code-path for generating requests. 2011-09-22 10:41:13 +03:00
Bob Aman d2907c9d79 Added better support for user IP and developer key across all APIs. 2011-09-21 10:52:15 +03:00
Bob Aman 0d2cbe26df Fixed issue with header/options ambiguity. 2011-08-02 16:20:54 -04:00
Bob Aman f336ab34a7 Major update, primarily to add pagination support.
* Added Reference objects to encapsulate API calls.
* Added Result objects to encapsulate API responses.
* Changed the return value of APIClient#execute to Result.
* Changed the method signature of APIClient#execute to support named params.
* Added APIClient#execute! which throws exceptions on error.
* Added automatic parsing code to better allow for complex nested structures.
* Added error parser.
* Added module for pagination in parsers.
2011-07-29 18:07:04 -04:00
Bob Aman ef2abc0493 Updated to use v1 of the discovery API.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@155 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-12 20:14:15 +00:00
Bob Aman 7d370c6d10 Updated documentation on User-Agent.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@154 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-12 17:12:15 +00:00
Bob Aman 4d56bb8b1b Added User-Agent improvements.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@133 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-04 22:43:33 +00:00
Bob Aman 286a7152f2 A significant update of the client functionality.
* updated to use v0.3 of the discovery API
* updated to use httpadapter 1.0.0
* added OAuth 2 support to the command line tool
* renamed some switches in the command line tool
* added additional configuration capabilities

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@128 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-05-04 11:44:35 +00:00
Bob Aman 0b49c3fd2e Added User-Agent header.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@107 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2011-01-05 01:09:52 +00:00
Bob Aman f63bf8199f Added option to support manually specified discovery URI.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@101 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 22:21:26 +00:00
Bob Aman 20eff1df7d Added support for two-legged OAuth.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@92 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 00:36:23 +00:00