Builds URLs for the DeviantArt API.
You're responsible for providing an API key and/or appending the appropriate OAuth 1.0a Authorize header to the request.
var client = new RestClient(apiKey);
// Make a request via Flurl.Http
var watching = await client
.GetUserFriendList("nullforce")
.WithPageLimit(50)
.WithPageOffset(offset)
.Uri
.WithClient(fc)
.WithOAuthBearerToken(_token)
.GetStringAsync();
var friendList = JsonConvert.DeserializeObject<GetUserFriendListResponse>(watching);
Prerequisites:
- .NET Core SDK
First, install the dotnet tool for Cake (may require restarting a PowerShell console):
dotnet tool install -g Cake.Tool
From the root of the repository:
dotnet cake build.cake
NuGet package at https://www.nuget.org/packages/Nullforce.Api.DeviantArt.Rest
Install-Package Nullforce.Api.DeviantArt.Rest