{"id":19675379,"url":"https://github.com/baudev/1fichier-api","last_synced_at":"2025-08-07T14:37:58.887Z","repository":{"id":57092891,"uuid":"348463198","full_name":"baudev/1fichier-api","owner":"baudev","description":"TypeScript API for https://1fichier.com/api.html","archived":false,"fork":false,"pushed_at":"2021-05-24T16:22:05.000Z","size":13,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T21:47:49.080Z","etag":null,"topics":["1fichier","api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baudev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-16T19:08:35.000Z","updated_at":"2023-06-22T23:28:45.000Z","dependencies_parsed_at":"2022-08-22T21:40:21.514Z","dependency_job_id":null,"html_url":"https://github.com/baudev/1fichier-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baudev%2F1fichier-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baudev%2F1fichier-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baudev%2F1fichier-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baudev%2F1fichier-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baudev","download_url":"https://codeload.github.com/baudev/1fichier-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240985269,"owners_count":19889041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1fichier","api"],"created_at":"2024-11-11T17:23:35.017Z","updated_at":"2025-02-27T05:40:23.515Z","avatar_url":"https://github.com/baudev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1fichier API\n\n![](https://img.shields.io/npm/v/1fichier-api) ![](https://img.shields.io/github/license/baudev/1fichier-api)\n\nThis library is designed for interactions with the [1fichier API](https://1fichier.com/api.html).\n\n# Installation\n\n```\nnpm install 1fichier-api\n```\n\n# Usage\n\n### `API1fichier`  \n\n`constructor(token: string)`\n\nConfigure the library to use the specified settings.  \n\n- `token` - *string* : The user private token.\n\n`downloadFile(settings: DownloadFileInputInterface)`\n\nReturns the download link for the specified file\n\n- `settings` - *DownloadFileInputInterface*: The file specification.\n\n- `returns` - *DownloadFileOuputInterface*\n\n- `throw` *API1FichierResponseNotOk(statusCode: number, message: string)*: If the api returns an error.\n\n`copyFile(settings: CopyFileInputInterface)`\n\nImports the file to your personnal account\n\n- `settings` - *CopyFileInputInterface*: The files to import and where to store them.\n\n- `returns` - *CopyFileOutputInterface*\n\n- `throw` *API1FichierResponseNotOk(statusCode: number, message: string)*: If the api returns an error.\n\n`editFile(settings: EditFileInputInterface)`\n\nEdits the file attributes\n\n- `settings` - *EditFileInputInterface*: The attributes to be changed and the files concerned.\n\n- `returns` - EditFileOuputInterface*\n\n- `throw` *API1FichierResponseNotOk(statusCode: number, message: string)*: If the api returns an error.\n\n# TODO\n\n- [ ] Add missing routes\n- [ ] Add tests\n\nDon't hesitate to contribute to the repository!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaudev%2F1fichier-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaudev%2F1fichier-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaudev%2F1fichier-api/lists"}