Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

captec/shared-file-resolver

 
 

Repository files navigation

Shared File Resolver

Getting started

Install

yarn

Run locally

yarn dev

Usage

The Unshare service consists of a single endpoint to resolve "shared file links" from various services including Dropbox, Google Drive and Box. You can try the endpoint at https://unshare.nanninga.now.sh/playground to see the request and response.

Parameters

parameter description type
sharinglink Sharing link to the file or folder to get information from string
recursive Recursively fetch files and folders if the original link is a folder boolean

Environment variables

Environment variables can either be set on a per command basis, or on a .env file. See .env.sample for a reference on the format.

Production

Environment variables for production need to be set using now secret.

now secret add unshare-dropbox-access-token <token>
now secret add unshare-google-drive-api-key <key>
now secret add unshare-box-access-token <token>

Deploy

This application is deployed on zeit.co now.

yarn deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 79.0%
  • HTML 15.1%
  • JavaScript 5.9%