Hono
Use Repull with Hono — ultra-fast web framework for the edge.
1
Prerequisites
Node.js 18+ installed on your machine.
You also need a Repull API key. Get one from your dashboard.
2
Install
npm install @repull/sdk hono
3
Set up environment variables
Add your credentials to a .env file in your project root:
REPULL_API_KEY=sk_live_YOUR_KEY
There is one key type — sk_live_ — created from /dashboard/keys. It acts on whatever channels your workspace has connected.
4
Make your first API call
Initialize the SDK with your API key, then call any endpoint. The example below lists properties and fetches reservations.
import { Hono } from 'hono'
import { Repull } from '@repull/sdk'
const app = new Hono()
const repull = new Repull({
apiKey: process.env.REPULL_API_KEY!,
})
app.get('/properties', async (c) => {
const { data } = await repull.properties.list()
return c.json(data)
})
app.get('/reservations', async (c) => {
const { data } = await repull.reservations.list({
platform: c.req.query('platform'),
})
return c.json(data)
})
export default app5
Next steps
You are all set. Explore the rest of the platform:
AI