0.0.16 • Published 2 years ago

shared-drive v0.0.16

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

0.0.15

2 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago