A small reference demo for using the z.umn.edu api to create or update z-links.
Prerequisite: NodeJS
- 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
-
Edit the payload of
./create.js
or./update.js
. For the requests to be successful, thekeyword
needs to be available. -
Run
./create.js
or./update.js
.