question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Paging Follow.OfCurrentUser() with PaginateAll. (.NET Standard 2.0, .NET Framework 4.6.1)

See original GitHub issue

I am trying this on my current Spotify account. I follow a total of 227 people, 200 of which are Artists.

var following = await spotify.Follow.OfCurrentUser();
var artistsFollow = following.Artists.Items;

foreach(var item in artistsFollow)
{
       Console.WriteLine("Artist: " + item.Name);
}

With the following code I can only get 20 of them, which I assume is the default size of the page. I only have access to the PaginateAll method, due to my .NET Standard version, but I am having trouble finding out where to apply it to get the result I want.

Follow up question: Will the Users type be added in a future version of the API? Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
YettySpaghettycommented, Jun 15, 2020

Sorry for the long response time. It does work well with the FollowersOfCurrentUserRequest, managed get all 200 and print them individually.

I wanted to check if it there are other types of requests that CursorPaging works with, but I saw in the metadata that only implemented for the FollowedArtistsResponse.

Hope this helps! Keep up the great work!

0reactions
JohnnyCrazycommented, Jun 15, 2020

THanks for the feedback! This change is now on NuGET via beta.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I use a .NET Standard 2.0 package in a classic . ...
Yes, indeed. You can just reference the .NET Standard 2.0 package from within a .NET Framework 4.6.1 project (a framework version lower will ......
Read more >
Issue with .NET Standard 2.0 and .NET Framework 4.6.1 ...
This causes unexpected behaviour and errors in some cases (in runtime). Now... I tried to solve that problem. Try 1: First of all...
Read more >
NET Standard
In this article .NET Standard versions; Specification; Target .NET Standard .NET Framework compatibility mode ...
Read more >
r/dotnet
Questions about upgrading our projects from .NET Framework 4.6.1 to .NET 6.0/Standard 2.0. Hey all, I have a few questions about upgrading ...
Read more >
Please stop lying about .NET Standard 2.0 support!
In this post I have a bit of a rant about Microsoft's NuGet packages lying about supporting .NET Standard 2.0 when they kinda...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found