Skip to content

Latest commit

 

History

History
104 lines (80 loc) · 2.99 KB

introduction.mdx

File metadata and controls

104 lines (80 loc) · 2.99 KB
title description
Welcome to Hero API Docs 🚀
Unlock the power of Hero Platform in your projects with Hero API

<img style={{borderRadius: 20}} src="/images/social_hero.jpg" alt="Hero API Splash Featured Image (https://hero.page)" />

What You Can Do With Hero API

Get Started with Hero API

  1. Sign in at Hero Page.
  2. Click your profile picture on the top right.
  3. Go to "Account Settings" -> "Get API Key."
  4. Your API Key will appear.

Example using the Hero Node.js SDK

import { HeroAPI } from "hero-api";
const hero = new HeroAPI('YOUR_API_TOKEN');
hero.createSpace('My Amazing Space', true, "https://picsum.photos/600/500").then(space => {
  console.log('Space created:', space);
});

Example using Python

import http.client

conn = http.client.HTTPSConnection("hero.page")

payload = "{\n  \"img\": \"https://picsum.photos/200/300\",\n  \"isPublic\": true,\n  \"name\": \"Your Amazing Space\"\n}"

headers = {
    'Authorization': "Bearer YOUR_API_TOKEN",
    'Content-Type': "application/json"
    }

conn.request("POST", "/api/v1/createSpace", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
More SDKs are coming, join the [Hero Discord](https://discord.com/invite/QkXkGsEt8G) to stay updated!
Integrate Hero Platform into your projects. Endless possibilities! Dive into [features](https://hero.page/features), or explore [Hero's Homepage](https://hero.page).
Dive into Space Management, List Management, and Item Management. Explore [shareable lists](https://hero.page/share-a-list-of-links), learn [what is a Hero Page](https://hero.page/what-is-a-hero-page), or see how to [create an account](https://hero.page/create-account).

For more information, please visit our privacy policy, terms & conditions, or access your account by signing in. If you need assistance, you can reset your password here.

Ready to Build Something Amazing?

Dive into the Hero API Playground and let your creativity flow!