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

Commit

Permalink
Merge pull request #85 from harshithagb/AND-661-Not-able-to-access-mo…
Browse files Browse the repository at this point in the history
…bilesupport-account-library-images

Not able to access account library images
  • Loading branch information
ggrell authored Jul 10, 2017
2 parents 292b2cd + 64a1c94 commit b832347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Observable<Paged<File>> getFiles(@Query("limit") int limit, @Query("sort_by") Fi
* @param nextLink Value of the link found in the meta of the original call
* @return an Observable that emits Paged Files
*/
@GET("v2/library/files?next={next}")
Observable<Paged<File>> getFiles(@Path("next") String nextLink);
@GET
Observable<Paged<File>> getFiles(@Url String nextLink);

/**
* Get a {@link Paged} collection of {@link File} from a specific {@link Folder}.
Expand All @@ -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={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
9 changes: 4 additions & 5 deletions lib/src/main/java/com/constantcontact/v2/LibraryService.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public interface LibraryService {
* @param nextLink Value of the link found in the meta of the original call
* @return an Observable that emits Paged Folders
*/
@GET("v2/library/folders?next={next}")
Call<Paged<Folder>> getFolders(@Path("next") String nextLink);
@GET
Call<Paged<Folder>> getFolders(@Url String nextLink);

/**
* Create a new {@link Folder}
Expand Down 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={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 b832347

Please sign in to comment.