Commit Graph

59 Commits

Author SHA1 Message Date
Steven Bazyl 3270a47fa8 Update docs re: api_method + allow options in array-style calls 2012-10-04 15:30:49 -07:00
Steven Bazyl 4d3c1801b7 Mostly doc updates, +remove support for method as string 2012-09-28 12:07:11 -07:00
Steven Bazyl a3e0ea8451 Continue internal shuffling... 2012-09-24 16:09:17 -07:00
Steven Bazyl 4665331502 Unify processing of api/resumable/batch requests 2012-09-11 11:04:21 -07:00
Steven Bazyl 18d3cccd6a Begin consolidation of request building in reference. Further changes coming to simplify batch + media handling 2012-09-05 14:56:52 -07:00
Steven Bazyl 8e26241e1c Consolidate request routing through execute methods 2012-09-05 14:16:31 -07:00
Steven Bazyl d54349d2a6 Remove embedded version #s, use Gemfile 2012-09-05 14:05:48 -07: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
Bob Aman 0986b4e64f Refactored CLI tool to be more maintainable.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@89 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-20 23:49:15 +00:00
Bob Aman 3bd7056e86 Updated version sorting code and added authorization shortcuts.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@60 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 20:39:09 +00:00
Bob Aman e50442091c Fixed issue with invalid type checking.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@51 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-09 02:41:38 +00:00
Bob Aman c67444734d Added example for generating request.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@45 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:12:34 +00:00
Bob Aman de394a55c6 Updated example.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@44 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:12:27 +00:00
Bob Aman 82d480e924 Fixed minor error in YARD documentation format.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@42 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:50:27 +00:00
Bob Aman 61c4c034b4 Removed :nodoc: directives, as they are not understood by YARD.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@41 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:49:00 +00:00
Bob Aman a6e80cbb88 Added documentation to the remainder of the API client methods.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@40 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:46:43 +00:00
Bob Aman 7e48c8913c Improving testing and coverage.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@37 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-30 21:33:23 +00:00
Bob Aman bbcc946f33 Improved coverage in tests and fixed a URI join bug.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@36 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-28 23:09:07 +00:00