README.md in oauth2_api_client-3.1.0 vs README.md in oauth2_api_client-3.1.1
- old
+ new
@@ -1,8 +1,8 @@
# oauth2_api_client
-[![Build Status](https://secure.travis-ci.org/mrkamel/oauth2_api_client.svg?branch=master)](http://travis-ci.org/mrkamel/oauth2_api_client)
+[![Build](https://github.com/mrkamel/oauth2_api_client/workflows/test/badge.svg)](https://github.com/mrkamel/oauth2_api_client/actions?query=workflow%3Atest+branch%3Amaster)
[![Gem Version](https://badge.fury.io/rb/oauth2_api_client.svg)](http://badge.fury.io/rb/oauth2_api_client)
Oauth2ApiClient is a small, but powerful client around
[oauth2](https://github.com/oauth-xx/oauth2) and
[http-rb](https://github.com/httprb/http) to interact with APIs which use
@@ -10,10 +10,10 @@
```ruby
client = Oauth2ApiClient.new(base_url: "https://api.example.com", token "oauth2 token")
client.post("/orders", json: { address: "..." }).status.success?
-client.headers("User-Agent" => "API Client").timeout(read: 5, write: 5).get("/orders").parse
+client.headers("User-Agent" => "API Client").timeout(read: 5, write: 5).get("/orders").parse(:json)
# ...
```
Oauth2ApiClient is capable of generating oauth2 tokens, when a client id,
client secret and oauth token url is given with automatic token caching and