SoundCloud API - 使用linked_pa​​rtitioning无法超越第二页结果

时间:2015-03-21 11:46:21

标签: c# soundcloud

您好我最近从使用偏移量切换到linked_pa​​rtitioning来获取SoundCloud API的分页结果,如下所示:https://developers.soundcloud.com/blog/offset-pagination-deprecated

我遇到的问题是,当我到达结果的第二页时,next_href值与用于获取第二页结果的url完全相同,因此我永远无法通过第二页。

以下是我正在使用的代码:

this.feedItemRootObject = await this.soundCloudRequester.GetFeedItems(TracksToLoadUrl, roamingSettings.Values["access_token"].ToString());

    if (this.feedItemRootObject != null)
    {
        if (!string.IsNullOrEmpty(this.feedItemRootObject.LoadMoreUrl))
        {
            TracksToLoadUrl = this.feedItemRootObject.LoadMoreUrl;
        }
        else
        {
            this.HasMoreItems = false;
        }

        bindableTracks = await TrackConverter.ConvertToListOfFeedItems(this.feedItemRootObject);
    }
    else
    {
        this.HasMoreItems = false;
        return null;
    }

我使用的原始网址是https://api.soundcloud.com/me/favorites.json?limit=20&linked_partitioning=1&oauth_token=

非常感谢任何帮助!

0 个答案:

没有答案