Quickstart
From the package to your first table in five minutes.
You will install the SDK, connect your project and read the rows of a table.
Install the SDK
Add the package
npm
npm install @sypnia/datapnpm
pnpm add @sypnia/datayarn
yarn add @sypnia/databun
bun add @sypnia/dataSave your token
Make one in the console, under Settings → Tokens, and keep it as an environment variable.
You should seeThe console shows the token only once.
Connect your project
TypeScript
import { Data } from '@sypnia/data';
const data = new Data({ token: process.env.SYPNIA_TOKEN });
const orders = await data.table('orders').rows({ limit: 20 }); Python
from sypnia import Data
data = Data(token=os.environ["SYPNIA_TOKEN"])
orders = data.table("orders").rows(limit=20) Your first table
Make the «orders» table from the console or from a CSV.
Through the API
GET
/v1/tables/{table}/rows The rows of a table, 20 at a time.
Query parameters
-
limitintegeroptionalHow many rows, up to 100.Default:
20 -
cursorstringoptionalWhere to go on from: the one the previous page gave you.
Was this page useful?
Thank you. It helps us write better pages.