Commit Graph

40 Commits

Author SHA1 Message Date
Ethan b6ef9b00ad fix schema to not choke when '$ref' is specifying what the '$ref' property actually is, rather than invoking it, and is therefore not a string.
this applies to the schema JsonSchema, specified in the document for the discovery service itself
2012-02-22 03:30:59 -05:00
Nikolay Mischenko 2eb6da99d3 Fixed parameters encoding (should be urlencoded) 2012-02-15 16:25:48 +03:00
Bob Aman 1a381ab963 Method renames to be consistent with change to resources. 2012-02-10 17:26:44 +03:00
Steven Bazyl c02f2ce6a4 Don't traverse ancestors when checking if schema is defined 2012-02-08 11:35:39 -08:00
Steven Bazyl 5b45f8f351 Rename 'resources' method due to conflict with one of the APIs. 2012-01-30 23:28:55 -08: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 04ec835ca1 Merge branch 'master' of ../martinsarsale-support-for-repeats 2011-12-02 17:27:13 +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
Martin Sarsale f736ac4d97 Merge remote branch 'remotes/upstream/master' 2011-11-30 11:39:28 -03:00
Martin Sarsale 01229ff710 Accept repeated parameters 2011-11-02 15:18:03 -03:00
Bob Aman 4b6e032e1b Updated to match change to AutoParse. 2011-10-20 17:58:00 +03:00
Bob Aman abf64d5314 Added task for wiki autogeneration. 2011-10-15 11:22:59 +03:00
Bob Aman 4db326a3ed Added task for wiki autogeneration. 2011-10-15 11:22:36 +03:00
Bob Aman bb4e15b9f4 Fixed issues with recursive structures and external references. 2011-10-05 14:13:39 +03:00
Bob Aman 06af19a112 Switched to using AutoParse for schemas. 2011-09-22 16:27:24 +03:00
Bob Aman 6fc526bd21 Partial solution to the issue of generating JSON. 2011-08-19 11:59:53 +03:00
Bob Aman 105dbd64f2 Fixed a bug in the method definition closures. 2011-08-10 16:59:55 -04:00
Bob Aman 27ae32d2e7 Basic structure of schema parsing complete.
* Note that additionalProperties fields are not currently supported and may
  only be accessed in raw form. Shouldn't be a big deal because only the Buzz
  API uses them extensively.
2011-08-10 16:48:22 -04:00
Bob Aman d9a108415b Added method to expose API property descriptions. 2011-08-08 18:04:48 -04:00
Bob Aman 9a2217a6bb Added support for API feature lists. 2011-08-08 17:28:21 -04:00
Bob Aman b8bd8e3964 Added support for API feature lists. 2011-08-08 17:23:59 -04:00
Bob Aman 547034d1e3 Adding missing require. 2011-08-05 17:00:36 -04:00
Bob Aman 75ee556a99 Moved dynamic method definitions into the APIObject class. 2011-08-05 16:55:40 -04:00
Bob Aman 960796d23d Added default values. 2011-08-05 14:44:29 -04:00
Bob Aman 13d590631b Added API#schema_for_kind method to allow schema lookups by kind. 2011-08-05 14:43:56 -04:00
Bob Aman 1fa3fb25d9 Better way to handle automatic parsing using the schemas in the discovery document. 2011-08-04 23:36:36 -04:00
Bob Aman b4745890f5 Separated out the discovery classes into individual files. 2011-08-04 18:32:00 -04:00
Bob Aman f96412cf23 Reorganized some of the code and removed unnecessary stuff.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@35 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-18 00:30:02 +00:00
Bob Aman 3a9d58108a Signed requests can now be generated and transmitted by the client.
Example code:
    require 'google/api_client'
    client = Google::APIClient.new(:service => 'buzz')
    client.authorization.fetch_temporary_credential!(
      :additional_parameters => {
        'scope' => 'https://www.googleapis.com/auth/buzz'
      }
    )
    client.authorization.authorization_uri
    # Redirect user here
    client.authorization.fetch_token_credential!(:verifier => '12345')
    response = client.execute(
      'buzz.activities.list',
      'scope' => '@self', 'userId' => '@me', 'alt' => 'json'
    )
    status, headers, body = response

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@34 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-16 23:40:08 +00:00
Bob Aman f462322be5 URI template expansion works.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@33 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-16 19:12:52 +00:00
bobaman@google.com 541054e88d Made the builder more flexible by adding a callback parameter.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@27 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 21:59:53 +00:00
bobaman@google.com d61916b110 Added a rudimentary implementation of a MethodBuilder.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@25 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 21:26:12 +00:00
bobaman@google.com e6ba0f6860 Updating code to consistent coding style.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@15 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-17 01:21:17 +00:00
bobaman@google.com 31132ffbb9 Added some tests for determining the discovery document URI.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@13 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-14 01:35:06 +00:00
bobaman@google.com 63783453e6 Added brief documentation to the handler classes.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@12 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-14 01:28:57 +00:00
bobaman@google.com 25786356d3 Added code to determine the location of the discovery document.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@11 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-14 01:26:01 +00:00
bobaman@google.com a6d7aa570e Updated the configuration handling code.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@10 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-14 01:16:35 +00:00
bobaman@google.com 10f9db8ac6 Added addressable/template require to discovery.rb.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@7 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-11 21:20:13 +00:00
mattpok@google.com 991fc86231 add skeleton for discovery
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@6 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-11 19:11:06 +00:00