Generate a customizable static badge with a label, message, and color. The badge content is specified as label-message-color with hyphens as separators.
Parameters (5)
badgeContent(string, path, required)
Badge content in format 'label-message-color'. URL-encode spaces as %20 or use underscores. Colors can be named (brightgreen, green, yellow, orange, red, blue, etc.) or hex codes (e.g., ff0000).
import zingu_apis
api = zingu_apis.api("shields")
result = api.fetch("badge/{badgeContent}", style="flat", logo="github", logoColor="white", labelColor="grey")
for item in result:
print(item)
const resp = await fetch("https://img.shields.io/badge/build-passing-brightgreen?style=flat&logo=github&logoColor=white&labelColor=grey");
const data = await resp.json();