imgflip_api 1.0.0 copy "imgflip_api: ^1.0.0" to clipboard
imgflip_api: ^1.0.0 copied to clipboard

An API for Imgflip made in Dart. This package allows you to interact with the Imgflip API to create memes.

example/imgflip_api_example.dart

import 'package:imgflip_api/imgflip_api.dart';

void main() async {
  /// Retrieves a list of available memes from the ImgFlip API.
  final memes = await ImgFlip.getMemes();

  print("Generating meme with template ID: ${memes.first.id}");

  /// Generates a meme using the specified template ID and texts.
  ImgFlip(
    username: 'YOUR USERNAME',
    password: 'YOUR PASSWORD',
  ).generateMeme(templateId: memes.first.id, texts: ['Hello', 'World']).then(
      (url) {
    print(url);
  });
}
1
likes
160
pub points
0%
popularity

Publisher

verified publisheryarosfpv.com

An API for Imgflip made in Dart. This package allows you to interact with the Imgflip API to create memes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on imgflip_api