Table of Contents

Class ApiProvider

Namespace
Exiled.Loader.GHApi
Assembly
Exiled.Loader.dll

An API bridge to GitHub services.

public static class ApiProvider
Inheritance
ApiProvider
Inherited Members

Fields

GetReleasesTemplate

The API template to get releases.

public const string GetReleasesTemplate = "https://api.github.com/repositories/{0}/releases"

Field Value

string

Methods

GetReleases(long, GetReleasesSettings, HttpClient)

Gets all releases from a git repository.

public static Task<Release[]> GetReleases(long repoId, GetReleasesSettings settings, HttpClient client)

Parameters

repoId long

The repository from which get the releases.

settings GetReleasesSettings

The settings.

client HttpClient

The HttpClient.

Returns

Task<Release[]>

A Release[] containing all requested releases.