README.md in yammer-client-0.1.2 vs README.md in yammer-client-0.1.3

- old
+ new

@@ -87,11 +87,11 @@ ```ruby require 'yammer' Yammer.options -#> {:site_url=>"https://www.yammer.com", :client_id=>nil, :client_secret=>nil, :access_token=>nil, :http_adapter=>Yammer::HttpConnection, :connection_options=>{:max_redirects=>5, :use_ssl=>true}} +#> {:site_url=>"https://www.yammer.com", :client_id=>nil, :client_secret=>nil, :access_token=>nil, :http_adapter=>Yammer::Connection, :connection_options=>{:max_redirects=>5, :use_ssl=>true}} ``` You may change this configuration by using the `configure` method ```ruby @@ -105,11 +105,11 @@ At this point, your new settings will take effect ```ruby Yammer.options -#> {:site_url=>"https://www.yammer.com", :client_id=>'[client_id]', :client_secret=>'[client_secret]', :access_token=>'[access_token]', :http_adapter=>Yammer::HttpConnection, :connection_options=>{ :max_redirects=>5, :use_ssl=>true }} +#> {:site_url=>"https://www.yammer.com", :client_id=>'[client_id]', :client_secret=>'[client_secret]', :access_token=>'[access_token]', :http_adapter=>Yammer::Connection, :connection_options=>{ :max_redirects=>5, :use_ssl=>true }} ``` ## Usage `yammer-client` provides two ways to access Yammer's API. One of these ways is by using HTTP helper methods on and instance of `Yammer::Client`. The other @@ -133,68 +133,68 @@ *find a user by email* ```ruby yamr.get_user_by_email('user@example.com') -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` *find a user by user id* ```ruby yamr.get_user('1588') -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` *get the current user* ```ruby yamr.current_user -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` **Message** *post a update as the current user* ```ruby yamr.create_message(:body => 'status update') -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` *send a private message to another Yammer user* ```ruby yamr.create_message(:body => 'private message', :direct_to_id => 24) -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` *send a message with an Open Graph Object as an attachment* ```ruby yamr.create_message(:body => 'here is my open graph object', og_url: "https://www.yammer.com/example/graph/31415926") -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` **Search** *search for a term within the context of current user* ```ruby yamr.search(:search => 'thekev', :model_types => 'users;groups') -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` **Thread** *fetch a thread with a given id* ```ruby yamr.get_thread(42) -#<Yammer::Response:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> +#<Yammer::ApiResponse:0x007fb949434ec8 @headers=#<Net::HTTPOK 200 OK readbody=true>, @body="[JSON Response]", @code=200> ``` ### Using the object models (Experimental) @@ -257,9 +257,10 @@ version: * Ruby 1.8.7 * Ruby 1.9.2 * Ruby 1.9.3 +* Ruby 2.0.0 This library may inadvertently work (or seem to work) on other Ruby implementations, however support will only be provided for the versions listed above.