Skip to content

A collection of scripts that demonstrate how to use the Files API

Notifications You must be signed in to change notification settings

PinataCloud/files-api-starter

Repository files navigation

files-api-starter

This repo includes some basic API calls to help get you started using the Files API.

Watch the video! IMAGE ALT TEXT HERE

Tip

If you plan to use Pinata in a Typescript/Javascript enviornment, check out our SDK!

Getting Started

First follow these steps to make a free Pinata account and get your API key and Gateway URL

By default this repo will use Bun.sh so install this first unless you plan to run the files with another program.

Clone the repo to your machine and install the dependencies

git clone https://github.com/PinataCloud/files-api-starter

cd files-api-starter

bun install

Rename the .env.example file to .env and paste in your Pinata JWT API key and Gateway URL

PINATA_JWT=
GATEWAY_URL=

Usage

Start using the API by running the following:

bun upload-files.ts

Continue testing by running the other files included in the repo

About

A collection of scripts that demonstrate how to use the Files API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published