Skip to content

FenrirServer/Fenrir.Api.DotNet

Folders and files

NameName
Last commit message
Last commit date
Dec 31, 2023
Dec 31, 2023
Jan 8, 2024
Jan 8, 2024
Jan 14, 2024
Dec 30, 2023
Dec 30, 2023
Dec 30, 2023
Jan 8, 2024
Dec 31, 2023

Repository files navigation

Fenrir Api for .NET

C# / .NET SDK for accessing Fenrir Cloud API.

Warning

The contents of this repository is generated automatically using openapi-generator. Please refer to the Cloud.Sdk.Templates repository.

Installation

You can install this from NuGet repository:

Install-Package Fenrir.Api

Getting Started

using Fenrir.Api.Api;
using Fenrir.Api.Client;
using Fenrir.Api.Model;

namespace Example
{
    public class Program
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.AccessToken = "YOUR_FENRIR_TOKEN";

            var api = new FenrirApi(config);
            
            try
            {
                var result = api.GetApplications(apiToken);
                
                foreach(var application in result.Applications)
                {
                    Console.WriteLine(application);
                }
            }
            catch (ApiException e)
            {
                Console.WriteLine("Exception when calling FenrirApi.GetApplications " + e.Message );
                Console.WriteLine("Status Code: "+ e.ErrorCode);
                Console.WriteLine(e.StackTrace);
            }
        }
    }
}

Documentation for API Endpoints

For the documentation for API endpoints, please refer to the docs/FenrirApi.md

Contribution guide

Please refer to the Cloud.Sdk.Templates repository for contributing. We currently do not accept pull requests in this repo.