Skip to content

Commit 1ca26f7

Browse files
committed
Remove /me/likes endpoint
#6
1 parent 074f1c0 commit 1ca26f7

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

PinSharp/Api/IMeApi.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public interface IMeApi
1515
Task<IEnumerable<IUserBoard>> GetBoardsAsync();
1616

1717
Task<PagedResponse<IUserPin>> GetPinsAsync(string cursor = null, int limit = 0);
18-
Task<PagedResponse<IUserPin>> GetLikedPinsAsync(string cursor = null, int limit = 0);
1918
Task<PagedResponse<IUser>> GetFollowersAsync(string cursor = null, int limit = 0);
2019
Task<PagedResponse<IBoard>> GetSuggestedBoardsAsync(string cursor = null, int limit = 0);
2120
Task<PagedResponse<IBoard>> GetSuggestedBoardsAsync(string pinId, string cursor = null, int limit = 0);

PinSharp/Api/PinterestApi.Me.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ Task<PagedResponse<IUserPin>> IMeApi.GetPinsAsync(string cursor, int limit)
2626
return PagedResponse<IUserPin>.FromTask(responseTask);
2727
}
2828

29-
public Task<PagedResponse<IUserPin>> GetLikedPinsAsync(string cursor, int limit)
30-
{
31-
var fields = PinFields.Where(x => !x.StartsWith("creator"));
32-
var responseTask = GetPagedAsync<IUserPin>("me/likes", new RequestOptions(fields, cursor, limit));
33-
return PagedResponse<IUserPin>.FromTask(responseTask);
34-
}
35-
3629
public Task<PagedResponse<IUser>> GetFollowersAsync(string cursor, int limit)
3730
{
3831
var responseTask = GetPagedAsync<IUser>("me/followers", new RequestOptions(cursor, limit));

0 commit comments

Comments
 (0)