An imgflip.com API client. For a documentation on the API see https://api.imgflip.com/.
Run yarn add imgflip.com
or npm install imgflip.com
.
A complete documentation is available at https://ffflorian.github.io/api-clients/packages/imgflip.com/.
import {Imgflip} from 'imgflip.com';
const imgflip = new Imgflip();
imgflip.api
.getMemes().then(response => {
//
});
imgflip.api
.captionImage({
username: 'myUser',
password: 'secret-password',
template_id: 438680,
// ...
})
.then(response => {
//
});
yarn
yarn test