Catalog npm
PACKAGE EXPLORERView in registry

1fichier-api

npm

1fichier API in TypeScript

Versions collected3
Direct dependencies3From release 1.0.2
Last observed20 Oct, 18:28 UTC

README

Current package documentation

1fichier API

This library is designed for interactions with the 1fichier API.

Installation

npm install 1fichier-api

Usage

API1fichier

constructor(token: string)

Configure the library to use the specified settings.

  • token - string : The user private token.

downloadFile(settings: DownloadFileInputInterface)

Returns the download link for the specified file

  • settings - DownloadFileInputInterface: The file specification.

  • returns - DownloadFileOuputInterface

  • throw API1FichierResponseNotOk(statusCode: number, message: string): If the api returns an error.

copyFile(settings: CopyFileInputInterface)

Imports the file to your personnal account

  • settings - CopyFileInputInterface: The files to import and where to store them.

  • returns - CopyFileOutputInterface

  • throw API1FichierResponseNotOk(statusCode: number, message: string): If the api returns an error.

editFile(settings: EditFileInputInterface)

Edits the file attributes

  • settings - EditFileInputInterface: The attributes to be changed and the files concerned.

  • returns - EditFileOuputInterface*

  • throw API1FichierResponseNotOk(statusCode: number, message: string): If the api returns an error.

TODO

  • Add missing routes
  • Add tests

Don't hesitate to contribute to the repository!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 3

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.2Registry latest24 May 20213
1.0.124 May 20213
1.0.017 Mar 20212

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
baudev/1fichier-api

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e3599e2d9326a644ffd7a51c753b000b9a0f00bf5c9db0f2aa230f13381a841b