README.md in agx-0.1.5 vs README.md in agx-0.2.0
- old
+ new
@@ -47,21 +47,21 @@
weeds = @agx_content_client.get("Weed", {publishDate: date.to_s})
```
### agX Sync API
-Setup agX Sync Client (OAuth 2 Authorization Code Flow)
+Setup agX Sync v4 Client (OAuth 2.0 / OpenID Connect 1.0 Authorization Code Flow)
***This requires that you have already previously authenticated and authorized
a user to agX through the authorization code grant flow process and have
persisted their sync ID, access token, refresh token, and access token
expiration timestamp.***
```ruby
@agx_sync_client = Agx::Sync::Client.new(
client_id: "your_client_id",
client_secret: "your_client_secret",
- version: "v3", # optional
+ version: "v4", # optional
sync_id: "agx_user_sync_id",
access_token: "agx_user_agx_token",
refresh_token: "agx_user_refresh_token",
token_expires_at: "access_token_expiration_timestamp",
transaction_id: "agx_user_previous_transaction_id" # optional,