Class ApiProvider
An API bridge to GitHub services.
Inheritance
System.Object
ApiProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Loader.GHApi
Assembly: Exiled.Loader.dll
Syntax
public static class ApiProvider
Fields
| Improve this Doc View SourceGetReleasesTemplate
The API template to get releases.
Declaration
public const string GetReleasesTemplate = "https://api.github.com/repositories/{0}/releases"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetReleases(Int64, GetReleasesSettings, HttpClient)
Gets all releases from a git repository.
Declaration
public static async Task<Release[]> GetReleases(long repoId, GetReleasesSettings settings, HttpClient client)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | repoId | The repository from which get the releases. |
GetReleasesSettings | settings | The settings. |
System.Net.Http.HttpClient | client | The System.Net.Http.HttpClient. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Release[]> | A Release[] containing all requested releases. |