@paragraph-com/sdk
v1.2.0
Published
TypeScript SDK for Paragraph API
Readme
@paragraph-com/sdk
TypeScript SDK for the Paragraph API. Used to interact with Paragraph posts, users, coins, & more.
Install
yarn add @paragraph-com/sdkQuick start
import { ParagraphAPI } from "@paragraph-com/sdk";
// For public endpoints
const api = new ParagraphAPI();
const post = await api.posts.get({ id: "postId" });
// For protected endpoints (creating posts, managing subscribers)
const apiWithAuth = new ParagraphAPI({ apiKey: "your-api-key" });
const newPost = await apiWithAuth.posts.create({
title: "My Post",
markdown: "# Hello World",
});Documentation
See the API reference for detailed documentation & a playground.
See autogenerated TypeScript docs for all available methods.
