Skip to content

purkayasta/ForismaticClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forismatic Client (Motivation Quote C# Client)

Give it a star if you like the project. 👏 🌠 🌟

Nuget Nuget

Usage:

Microsoft DI:

builder.service.AddForismatic();

public class ApiController {
    private readonly IForismaticApiClient _client;
    public ApiController(IForismaticApiClient client)
        => this._client = client;
}

Factory Pattern:

IForismaticApiClient client = IForismaticApiClient.CreateClient();

API Example:

var quote = await client.GetQuoteAsync(Forismatic.Models.LanguageEnum.English);

System.Console.WriteLine(quote.Quote);
System.Console.WriteLine(quote.Author);
System.Console.WriteLine(quote.Link);

Made ❤️🔥 with c#