A .NET wrapper for the imgflip.com Meme Generator RESTful HTTP api.
- imgflip.com-Account (Get)
- .NET Core >= 2.0 (Get)
- Install the ImgFlip4NET-NuGet Package
var service = new ImgFlipService(new ImgFlipOptions());
var template = await service.GetRandomMemeTemplateAsync();
var service = new ImgFlipService(new ImgFlipOptions {
Username = "[YOUR USERNAME]",
Password = "[YOUR PASSWORD]"
});
var template = await service.GetRandomMemeTemplateAsync();
var meme = await service.CreateMemeAsync(template.Id, "some text here", "and some here...");
Console.WriteLine(meme.ImageUrl);
- Newtonsoft.Json (used for HTTP payload deserialization)