A simple API to get style of brands / websites / ...
10K+
A simple API to get style of brands / websites / ...
You can use it via https://brandstyle.hug33k.fr or by deploying it by yourself. (My URL will be used in next examples).
Will return list of available brands
$> curl https://brandstyle.hug33k.fr/brands
{
"brands": [
"brand1",
"brand2"
]
}
Will return info for asked brand
$> curl https://brandstyle.hug33k.fr/brands/github
{
"name": "GitHub"
"colors": [
"4078c0",
"6cc644",
"bd2c00",
"c9510c",
"6e5494",
"fafafa",
"f5f5f5",
"333"
]
}
Will return colors for asked brand
$> curl https://brandstyle.hug33k.fr/brands/github/colors
{
"colors": [
"4078c0",
"6cc644",
"bd2c00",
"c9510c",
"6e5494",
"fafafa",
"f5f5f5",
"333"
]
}
If you use Docker :
$> docker pull hug33k/brandstyle
$> docker run -d --name BrandStyle -p YOUR_PORT:80 -e TZ=YOUR_TIMEZONE hug33k/brandstyle
If you use docker-compose.yml:
version: "3"
services:
quoter:
container_name: BrandStyle
image: hug33k/brandstyle
ports:
- YOUR_PORT:80
environment:
- TZ=YOUR_TIMEZONE
restart: always
If you don't have or hate Docker :
$> export BRANDSTYLE_PORT=YOUR_PORT
$> git clone [email protected]:hug33k/BrandStyle.git
$> cd BrandStyle/
$> pip install -r requirements.txt
$> python server.py
Content type
Image
Digest
Size
81.9 MB
Last updated
over 8 years ago
docker pull hug33k/brandstyle