0.0.16 • Published 11 months ago

shared-drive v0.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Shared Drive

This controller provides functionallity on top of common file sharing services to get access to public shared folders.

Google Drive

import { googledrive } from 'shared-drive'

const G_API_KEY = process.env.G_API_KEY as string // Google API Key

const result = await googledrive('https://drive.google.com/drive/folders/1HDb6vlmKHTmtRO5ChGQLEu-EunrkA67m?usp=sharing', {}, G_API_KEY);

console.log(result);

One Drive

import { onedrive } from 'shared-drive'

const MS_APP_AUTH = {
  clientId: process.env.MS_CLIENT_ID as string, // Client Id from registered app
  directoryId: process.env.MS_DIRECTORY_ID as string, // Directory Id from registered app
  clientSecret: process.env.MS_CLIENT_SECRET as string // Client Secret from registered app
}

const result = await onedrive('https://fellowblue-my.sharepoint.com/:f:/g/personal/maurice_fellow_blue/EgdHXq3SJclOpHhgrsJ168EBsQDNBkZBFlYZjxnzqQJQqw?e=7sdQax', {}, MS_APP_AUTH);

console.log(result);
0.0.16

11 months ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago