https://github.com/holedaemon/microgopster
A microservice written in Go for generating Topster charts.
https://github.com/holedaemon/microgopster
Last synced: about 1 year ago
JSON representation
A microservice written in Go for generating Topster charts.
- Host: GitHub
- URL: https://github.com/holedaemon/microgopster
- Owner: holedaemon
- License: mit
- Created: 2023-09-20T03:16:24.000Z (over 2 years ago)
- Default Branch: trunk
- Last Pushed: 2024-03-25T21:57:41.000Z (about 2 years ago)
- Last Synced: 2025-02-13T17:29:26.615Z (over 1 year ago)
- Language: Go
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MICROGOPSTER
A microservice that generates Topster charts using last.fm user data. Made using [holedaemon/gopster](https://github.com/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:
```json
{
"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.
```json
{
"image": "base64 encoded image"
}
```
# LICENSE
[MIT](LICENSE)