Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix user media/feed request #468

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix user media/feed request
  • Loading branch information
ivanvagner committed Sep 24, 2021
commit e4aa31293345c1a23393c2aa41ade2ddf2ac9e4c
2 changes: 1 addition & 1 deletion src/InstagramApiSharp/API/InstaApiConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ internal static class InstaApiConstants
public const string LIKE_FEED = API_SUFFIX + "/feed/liked/";
public const string TIMELINEFEED = API_SUFFIX + "/feed/timeline/";
public const string USER_REEL_FEED = API_SUFFIX + "/feed/user/{0}/reel_media/";
public const string USEREFEED = API_SUFFIX + "/feed/user/";
public const string USEREFEED = API_SUFFIX + "/feed/user/{0}/";

#endregion Feed endpoints constants

Expand Down
2 changes: 1 addition & 1 deletion src/InstagramApiSharp/Helpers/UriCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ public static Uri GetUserLikeFeedUri(string maxId = null)

public static Uri GetUserMediaListUri(long userPk, string nextId = "")
{
if (!Uri.TryCreate(BaseInstagramUri, InstaApiConstants.USEREFEED + userPk, out var instaUri))
if (!Uri.TryCreate(BaseInstagramUri, string.Format(InstaApiConstants.USEREFEED, userPk), out var instaUri))
throw new Exception("Cant create URI for user media retrieval");
return !string.IsNullOrEmpty(nextId)
? new UriBuilder(instaUri) { Query = $"max_id={nextId}" }.Uri
Expand Down