Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

PermanentOrg/permanent-api-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

permanent-api-js

Archived

This repository is archived. Currently, it is not being maintained or improved by the Permanent Legacy Foundation. Instead, trying using our SDK.

Documentation Preview Here

https://permanent-legacy-foundation.github.io/permanent-api-js/

What is it?

A REST API wrapper for server-side javascript applications

What is permanent?

Permanent.org is a trusted platform for individuals, families and small organizations that provides a secure and private environment to build and share archival quality history with family, friends, colleagues and the public, at their complete discretion. Permanent.org is the world’s first consumer-grade, secure cloud storage service backed by a 501(c)3 nonprofit organization: the Permanent Legacy Foundation.

What can I do?

The current API supports...

  • Creating archives
  • Uploading files to an archive

Getting started

1. Create account on https://www.permanent.org
2. Contact us to get an API key - support@permanent.org

Install

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

npm install permanent-api-js

After installing, create a file in server app root folder 
called envVars.txt. Add the API key to the file.

PERMANENTORG_APIKEY=your-api-from-support@permanent.org

Tests

After downloading run the tests to see the results and learn about the interfaces.

Register with permanent.org and request an APIKEY
to see all greens.

All Tests: npm test Unit Tests: npm run-script unit_tests Functional Tests: npm run-script functional_tests

Usage

Set your API key to the environment variable process.env.PERMANENTORG_APIKEY
var permanent = require('permanent-api-js');

or pass API key var permanent = require('permanent-api-js')('YOUR_API_KEY');

Then see the docs https://permanent-legacy-foundation.github.io/permanent-api-js/

About

REST API wrapper for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published