Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ $ mvn install

Creating the client
```Java
IrisClient client = new IrisClient(accountId, username, password);
// With Basic Auth
IrisClient client = new IrisClient("<accountId>", "<username>", "<password>");

// With A Bearer Token
IrisClient client = new IrisClient("<accountId>", "<username>", "<password>", "<yourBearerToken>", <bearerTokenExpiration>);

// With OAuth using Client Credentials
IrisClient client = new IrisClient("<accountId>", "<username>", "<password>");
client.setClientId("<yourClientId>");
client.setClientSecret("<yourClientSecret>");

// See IrisClient.java for all of the possible new OAuth constructors

// You can then use the client to call a particular object's methods, e.g.
Site s = new Site();
Expand Down