GithubHelp home page GithubHelp logo

memerator / memerator-sdk-java Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 209 KB

The Memerator API library in Java

License: MIT License

Java 100.00%
java library javalibrary sdk sdk-java memerator jar

memerator-sdk-java's Introduction

Memerator API for Java

The official Java API library for Memerator.

Downloading/Installing

Stable Builds

Stable builds are published to Central, so you only need the dependency. Replace [version] with the version below (without the "v")

Latest Stable version: Maven Central

<!-- Memerator API -->
<dependency>
    <groupId>me.memerator.api</groupId>
    <artifactId>MemeratorAPI</artifactId>
    <version>[version]</version>
</dependency>

Development Builds

To stay up to date with Memerator features (but with potentially more breaking changes), consider our dev builds.

Jenkins

Maven:

First, you need Chew's Jenkins repository

<repository>
    <id>chew-jenkins</id>
    <url>https://jenkins.chew.pw/plugin/repository/everything/</url>
</repository>

Then, you'll need to install the build you want. All are considered dev builds unless otherwise specified in a Release.

Replace <version>[this]</version> with the latest build found on the Jenkins page. See MemeratorAPI-[version string].jar.

<!-- Memerator API -->
<dependency>
    <groupId>me.memerator.api</groupId>
    <artifactId>MemeratorAPI</artifactId>
    <version>[this]</version>
</dependency>

Builds remain there indefinitely, but it's always best to stay up to date.

Alternatively, on the same Jenkins link, you can manually download the JAR yourself for safe keeping, in case it does go down.

Using

Using the API is simple. Here's an example to get you started!

import me.memerator.api.client.MemeratorAPIBuilder;
import me.memerator.api.client.entities.Meme;
import me.memerator.api.client.MemeratorAPI;
import me.memerator.api.internal.impl.MemeratorAPIImpl;

public class MyMemeratorProgram {
    public static void main(String[] args) {
        // Define the Memerator API
        MemeratorAPI api = MemeratorAPIBuilder.create("your api key").build();
        // Get meme "aaaaaaa"
        Meme meme = api.retrieveMeme("aaaaaaa").complete();
        // Print out the memerator.me link
        System.out.println(meme.getMemeUrl());
    }
}

You can view the Javadocs here.

memerator-sdk-java's People

Contributors

chew avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.