Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Updated getFilesByFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithagb committed Jul 10, 2017
1 parent 991522a commit 64a1c94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,11 @@ Observable<Paged<File>> 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<Paged<File>> getFilesByFolder(@Path("folderId") String folderId, @Path("next") String nextLink);
@GET
Observable<Paged<File>> getFilesByFolder(@Url String nextLink);

/**
* Get a specific {@link File}
Expand Down
5 changes: 2 additions & 3 deletions lib/src/main/java/com/constantcontact/v2/LibraryService.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,11 @@ Call<Paged<File>> 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<Paged<File>> getFilesByFolder(@Path("folderId") String folderId, @Path("next") String nextLink);
@GET
Call<Paged<File>> getFilesByFolder(@Url String nextLink);

/**
* Get a specific {@link File}
Expand Down

0 comments on commit 64a1c94

Please sign in to comment.