Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 604 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 604 Bytes

Example Z-Link API usage

A small reference demo for using the z.umn.edu api to create or update z-links.

Getting Started

Prerequisite: NodeJS

  1. Setup the .env file with your credentials:
# copy .env.example
cp .env.example .env

# add your ACCESS_ID and SECRET_KEY to `.env` 
# you can find them at <https://z.umn.edu/shortener/api_keys>
nano .env
  1. Edit the payload of ./create.js or ./update.js. For the requests to be successful, the keyword needs to be available.

  2. Run ./create.js or ./update.js.