README.md in oneaccess-0.1.7 vs README.md in oneaccess-0.1.8
- old
+ new
@@ -38,10 +38,11 @@
- Research Document: _/research/document_
- Research Document by User ID: _/research/documentByUserId_
- Organization's Product Groups: _/entitlement/organization/productgroup/getList_
- Organization: _/organizations/id_
- User's Product Groups: _/entitlement/user/productgroup/getList_
+- User Entitlement Requests: _/entitlement/research/userRequests/getListWithEntitlementsStatus_
### User by Email _(/user/getByEmail)_
Official Documentation: http://apidocs.oneaccess.io/docs/usergetorcreate
This method returns a `User` object if it matches the first name, last name, and email. If there's not a match, then a new user is created and returned.
@@ -153,11 +154,11 @@
resp.data.addresses #=> Array of instances of ONEAccess::DataObject::Address
```
### Research Entitlement
-### Create an Research Entitlement request
+### Create a Research Entitlement request
Official documentation: http://apidocs.oneaccess.io/docs/entitlmentresearchuserrequestscreate
Creates a new Research Entitlement Request for the given User.
@@ -168,7 +169,23 @@
sales_contact_first_name:'John', sales_contact_last_name:'Doe', sales_contact_email:'john.doe@example.com')
resp.data #=> ID of the new Request
rescue ONEAccess::Error::APIError => e
puts "Error creating the Research Entitlement Request: #{e}"
+end
+```
+
+### User Entitlement Requests _(/entitlement/research/userRequests/getListWithEntitlementsStatus)_
+Official Documentation: http://apidocs.oneaccess.io/docs/entitlementresearchuserrequests
+
+This method returns a list of user entitlement requests based on the specified `UserIds`, `PageNumber`, `PageSize`, `SortBy`, `IsAscending`, `CreateDateFrom`, `CreateDateTo`, `SellSideOrgIds` and `EntitlementStatus` parameter values.
+
+#### How to use:
+```ruby
+begin
+ resp = ONEAccess::API::Entitlement::Research::UserRequests.get_list
+
+ resp.data #=> Array of instances of ONEAcess::DataObject::UserEntitlementRequest
+rescue ONEAccess::Error::APIError => e
+ puts "Error listing the available user entitlement requests"
end
```