diff --git a/README.md b/README.md
index e52f6d2..32c03ad 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ The client is available in the [Maven Central Repository](https://mvnrepository.
com.recombee
api-client
- 1.4.0
+ 1.5.0
```
diff --git a/pom.xml b/pom.xml
index 7bc3835..f624887 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.recombee
api-client
- 1.4.0
+ 1.5.0
Recombee API Client
A client library for easy use of the Recombee recommendation API
http://recombee.com
diff --git a/src/main/java/com/recombee/api_client/RecombeeClient.java b/src/main/java/com/recombee/api_client/RecombeeClient.java
index 1e0c4dd..c85a445 100644
--- a/src/main/java/com/recombee/api_client/RecombeeClient.java
+++ b/src/main/java/com/recombee/api_client/RecombeeClient.java
@@ -59,6 +59,8 @@
import com.recombee.api_client.api_requests.ListUserCartAdditions;
import com.recombee.api_client.api_requests.ListItemBookmarks;
import com.recombee.api_client.api_requests.ListUserBookmarks;
+import com.recombee.api_client.api_requests.ListItemViewPortions;
+import com.recombee.api_client.api_requests.ListUserViewPortions;
import com.recombee.api_client.api_requests.UserBasedRecommendation;
import com.recombee.api_client.api_requests.ItemBasedRecommendation;
@@ -77,7 +79,7 @@ public class RecombeeClient {
final int BATCH_MAX_SIZE = 10000; //Maximal number of requests within one batch request
- final String USER_AGENT = "recombee-java-api-client/1.4.0";
+ final String USER_AGENT = "recombee-java-api-client/1.5.0";
public RecombeeClient(String databaseId, String token) {
this.databaseId = databaseId;
@@ -278,6 +280,26 @@ public Bookmark[] send(ListUserBookmarks request) throws ApiException {
return null;
}
+ public ViewPortion[] send(ListItemViewPortions request) throws ApiException {
+ String responseStr = sendRequest(request);
+ try {
+ return this.mapper.readValue(responseStr, ViewPortion[].class);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
+ public ViewPortion[] send(ListUserViewPortions request) throws ApiException {
+ String responseStr = sendRequest(request);
+ try {
+ return this.mapper.readValue(responseStr, ViewPortion[].class);
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return null;
+ }
+
/* End of the generated code */
public BatchResponse[] send(Batch batchRequest) throws ApiException {
@@ -502,6 +524,22 @@ else if (request instanceof ListUserBookmarks)
for(int j=0;j> array = (ArrayList