Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.
/ FaceApp.Net Public archive

A light-weight .NET wrapper for face app API.

License

Notifications You must be signed in to change notification settings

Sid-003/FaceApp.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceApp.Net

A lightweight wrapper for the FaceApp API.

Note

This library does not implement ratelimit to prevent you from getting blocked from the API, so I would be careful while using it.

How to use?

Don't

//Create a new instance of the FaceAppClient and pass an instance of HttpClient to its constructor (you generally want to only have one instance of the HttpClient).
//Note: Using Dependency Injection is recommended because it handles everything for you.

//_faceApp: FaceAppClient, url: string url
if (Uri.TryCreate(url, UriKind.Absolute, out Uri uri))
{
    try
    {
        var code = await _faceApp.GetCodeAsync(uri);
        using (var imgStream = await _faceApp.ApplyFilterAsync(code, FilterType.Old))
        {
            //do stuff.
        }
    }
    catch (FaceException ex)
    {
        Console.WriteLine(ex.ToString());
    }            
}

Example

Normal Zucc Happy Zucc

Credits

I used Faces, a python wrapper, to figure out the endpoint as it was not documented.

About

A light-weight .NET wrapper for face app API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages