Skip to content

nullforce-public/Nullforce.Api.DeviantArt.Rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nullforce.Api.DeviantArt.Rest

Builds URLs for the DeviantArt API.

Authorization

You're responsible for providing an API key and/or appending the appropriate OAuth 1.0a Authorize header to the request.

Example Usage

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);

Building

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

NuGet package at https://www.nuget.org/packages/Nullforce.Api.DeviantArt.Rest

Install-Package Nullforce.Api.DeviantArt.Rest