View on GitHub

GithubClient

A C# Dll library for working with the Github Rest API

GithubClient

GithubClient.Methods.Contents

Contents.GetContents(string, Repository, string) Method

Returns a content object from the Github API

public static System.Threading.Tasks.Task<System.Collections.Generic.List<GithubClient.Repositories.ContentDirectory>>? GetContents(string PAT, GithubClient.Repositories.Repository repository, string Ref="main");

Parameters

PAT System.String

Personal Access Token

repository Repository

A Repository object

Ref System.String

The name of the commit/branch/tag. Default: the repository’s default branch (usually master)

Returns

System.Threading.Tasks.Task<System.Collections.Generic.List<ContentDirectory>> A DirectoryContent object

See Also