From 64a1c943911944b92eafca8843d26c6dfd8909d7 Mon Sep 17 00:00:00 2001 From: harshitha Date: Mon, 10 Jul 2017 10:55:44 +0530 Subject: [PATCH] Updated getFilesByFolder --- .../src/main/java/com/constantcontact/v2/LibraryService.java | 5 ++--- lib/src/main/java/com/constantcontact/v2/LibraryService.java | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib-rx/src/main/java/com/constantcontact/v2/LibraryService.java b/lib-rx/src/main/java/com/constantcontact/v2/LibraryService.java index a9852295..f0c3f9d3 100755 --- a/lib-rx/src/main/java/com/constantcontact/v2/LibraryService.java +++ b/lib-rx/src/main/java/com/constantcontact/v2/LibraryService.java @@ -117,12 +117,11 @@ Observable> getFilesByFolder(@Path("folderId") String folderId, @Que /** * Get a {@link Paged} collection of {@link File} from a specific {@link Folder}. * - * @param folderId The Folder ID * @param nextLink Value of the link found in the meta of the original call * @return an Observable that emits Paged Files */ - @GET("v2/library/folders/{folderId}/files?{next}") - Observable> getFilesByFolder(@Path("folderId") String folderId, @Path("next") String nextLink); + @GET + Observable> getFilesByFolder(@Url String nextLink); /** * Get a specific {@link File} diff --git a/lib/src/main/java/com/constantcontact/v2/LibraryService.java b/lib/src/main/java/com/constantcontact/v2/LibraryService.java index d9a6c28c..e74fe1a3 100644 --- a/lib/src/main/java/com/constantcontact/v2/LibraryService.java +++ b/lib/src/main/java/com/constantcontact/v2/LibraryService.java @@ -116,12 +116,11 @@ Call> getFilesByFolder(@Path("folderId") String folderId, @Query("li /** * Get a {@link Paged} collection of {@link File} from a specific {@link Folder}. * - * @param folderId The Folder ID * @param nextLink Value of the link found in the meta of the original call * @return an Observable that emits Paged Files */ - @GET("v2/library/folders/{folderId}/files?{next}") - Call> getFilesByFolder(@Path("folderId") String folderId, @Path("next") String nextLink); + @GET + Call> getFilesByFolder(@Url String nextLink); /** * Get a specific {@link File}