Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

1fichier-api

1fichier API in TypeScript

Published24 May 2021
Direct dependencies3
Transitive dependenciesNot calculated

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.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^14.14.35runtime
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.6.1runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.2.4development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-/wYDqwx6l6sK4XDRlbE9r6PKmjLlEb9y1fKWF+O+LEjktTHhK0QFIBmf6jFRYG4TXC/uMfApIhbNgyRr5UA8HA==",
  "shasum": "a0a4235715b93b4ab3eb2cb9d369f13c18ccd6a1",
  "tarball": "https://registry.npmjs.org/1fichier-api/-/1fichier-api-1.0.1.tgz",
  "fileCount": 4,
  "unpackedSize": 6183,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq9BNCRA9TVsSAnZWagAA100P/R/wcjJAsPztEC3IHxmn\n6vd5WO5vhAI+ryOyvKEYegPGu310xRTuoiIUqtdxSR7izC7JMyjuqfY+dGWu\nkiJIPAvQ/2G8JiXwWKAKyKDKg/h/Qtme92Xo77Kjfkpmcz6ptPT4ddrUmpQ6\nZkomtR/jKMR5S6bPKKYmCQlqFgSy+bIEsmntZ/ZP9NizTiJhniK6+AvDCVjf\nEEgLetBtLO5GT6c6oee7/J+H95qE5EB3VAJmAQ8OmCBV0NA6S6wLHZRej18I\nRUKTBl+W3s5x8zzoglSqfSfOr3GrzbZgRnl8Nkvy6SUjuXxwp2JaHdYfj9MJ\npsGAHNjD0wELJDLBDSF9str2nyBi/BaGlI7BbQGdfVqwhv+etygAqTY9lD6O\nRg3cB0iQ56Q8VWJwyU5cT+6oZk6SRG9q3xevaFdfjAn21vq7lcu2Wc4ybghA\njWwirxcdL+16fThY+SggtWlOUj+EQWhXgrOPgtAj0EAQxcTDh7VD0mkN6ZK+\niMEdpOMNXljRfXvai+3q2FWB8gKtjvbt06aXfEDek7A+0MniKU3dJOxsMHnO\nsMyKAlSpCdxmyuLBQUIUBxDdyeK8fPgsjsnqU4GVro6GZCoT8i4zQSXHvvpU\niR3CqAzVcU0zngXsqQuuNb9eht4FNkTDdhFHIwXVYMpjrwmhahvQ/2YO/1HM\nrfcu\r\n=Wlf7\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIAKgYhSrsne561/1JtpeXmQE/0Ydig9T1PFeQYp3pVPVAiEAhzvZiD2LvishlbR1bBfDi4ElCugPeAro9a+ogLQe4Mk="
    }
  ]
}

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_version:8a85aca0a55d4e2c5b556eee3d7bace14c20ad3413bba86d12b096ac824393bb

Other collected versions

1.0.224 May1.0.017 MarView all collected versions →