microgopster

command module
v0.0.0-...-b5e1e67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 5 Imported by: 0

README

MICROGOPSTER

A microservice that generates Topster charts using last.fm user data. Made using holedaemon/gopster. Part of the Never Stable Club.

HOW-TO

Once running, send a POST to the root of the service with a JSON body that looks something like this:

{
    "user": "...", // required
    "period": "overall|7day|1month|3month|6month|12month", // optional"
    "title": "My Topster Chart", // optional
    "background_color": "#FFFFFF", // optional
    "text_color": "#000000", // optional
    "gap": 20, // optional
    "show_titles": true, // optional
    "show_numbers": true // optional, only accepted when show_titles is true
}

The response is another JSON object, with a base64 encoded image. Do with it what you will.

{
    "image": "base64 encoded image"
}

LICENSE

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL