Skip to content

New extension: Meme API #1667

@Zac0511

Description

@Zac0511

Description

This extension adds easy access to the Meme API for GDevelop.
The Meme API itself is under a MIT license, which is perfect for GDevelop.

The extension allows users to :

  • Obtain one random meme from the default subreddits ('memes', 'dankmemes', 'me_irl')
  • Obtain one random meme from a selected subreddit

The meme data is then returned in JSON format containing :

  • Link to reddit post (string) postLink
  • Subreddit name (string) subreddit
  • Post title (string) title
  • Image URL (string) url
  • Is it NSFW (boolean) nsfw
  • Is it a spoiler (boolean) spoiler
  • Username of the post's author (string) author
  • Quantity of upvotes on post (number) ups
  • Image preview URLs from lowest to highest quality (array) preview

This data can then be exported in a structure variable in GDevelop, and retrieved with VariableString(OutputVariable.something) (for getting the title, it would be VariableString(OutputVariable.title))

How to use the extension

  1. Use the Obtain a random meme or Obtain a random meme from a specific subreddit action, choose an output variable for the JSON data (and also choose subreddit name in the case of the specific subreddit action)
  2. Use VariableString() to retreive obtained data.
    • Example for getting the title with a variable named FunnyMeme : VariableString(FunnyMeme.title)

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Meme API - Example.zip

Extension file

MemeAPI.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions