You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an easy fix for this, we need to add a 'User-Agent' header, something like below:
publicinterfaceIRedditService{/// <summary>/// Get a list of posts from a given subreddit/// </summary>/// <param name="subreddit">The subreddit name.</param>[Headers("User-Agent: Awesome CommunityToolkit.Mvvm Sample App")][Get("/r/{subreddit}/.json")]Task<PostsQueryResponse>GetSubredditPostsAsync(stringsubreddit);}
Now the sample in the 'The Final Result!' will work correctly.
The text was updated successfully, but these errors were encountered:
There is an easy fix for this, we need to add a 'User-Agent' header, something like below:
Now the sample in the 'The Final Result!' will work correctly.
The text was updated successfully, but these errors were encountered: