README.markdown in google_contacts_api-0.2.3 vs README.markdown in google_contacts_api-0.2.4

- old
+ new

@@ -2,11 +2,12 @@ An unofficial Google Contacts API for ruby. Might not be stable (but probably is). In active usage at [thirsst.com](http://thirsst.com/). (Shameless plug: We help you manage your RSS and group bookmarking!) ## Usage -You need to provide an OAuth access token from one of the major OAuth libraries to this library. +You need to provide an OAuth client, with access token, from an OAuth access library to this library. I've tested it with OAuth::AccessToken from the [oauth-ruby](https://github.com/oauth/oauth-ruby) gem. I'm guessing there would be a few small changes in implementation details of the GoogleContactsApi::Api class if you use another library, mostly to change how the base get/post/put/delete methods work. + Then you can instantiate a GoogleContactsApi::Api object for direct posting and parsing, or a GoogleContactsApi::User object for easier stuff. ```ruby google_contacts_user = GoogleContactsApi::User(oauth_access_token_for_user) @@ -26,19 +27,22 @@ contact.emails ``` In addition, Contacts and Groups are subclasses of [Hashie::Mash](https://github.com/intridea/hashie), so you can access any of the underlying data directly. Note that data is retrieved using Google's JSON API so the equivalent content of an XML element from the XML API is stored under the key "$t". +The easiest way to see the convenience methods I've provided is to look at the RSpec tests. + ## TODO I welcome patches and pull requests, see the guidelines below (handily auto-generated by jeweler). * Any missing tests! (using RSpec, please) * Read more contact information (structured name, address, phone, ...) * Get single contacts and groups * Posting/putting/deleting groups, contacts and their photos. This might require XML? -* Support ClientLogin +* Test other OAuth libraries ([oauth2](https://github.com/intridea/oauth2) is next on my list). Does Google support OAuth 2.0 for contacts? +* Support ClientLogin (maybe not, since Google's old library covers it) ## Contributing to google_contacts_api * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it \ No newline at end of file