Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/demarches-simplifiees/ds-api-client
https://github.com/demarches-simplifiees/ds-api-client
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/demarches-simplifiees/ds-api-client
- Owner: demarches-simplifiees
- License: mit
- Created: 2023-09-18T10:26:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-07T09:00:12.000Z (7 months ago)
- Last Synced: 2024-05-23T02:39:49.371Z (7 months ago)
- Language: TypeScript
- Size: 98.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ds-api-client
## Step 1: Download (Linux or MacOS)
[download](https://github.com/demarches-simplifiees/ds-api-client/releases/latest)
## Step 2: Provide DS token
```bash
echo "GRAPHQL_TOKEN=" >> .env
```## Step 3: Run
```bash
ds-api-client help dossier
```
```
Usage: ds-api-client dossier [options]Display or download a dossier
Arguments:
dossierNumber Dossier numberOptions:
-d, --download Download files
-t, --table Show dossier details
-j, --json Print dossier as JSON
--no-color No colors
-P, --parallel Download in parallel files (default: 20)
-o, --outdir Output directory (default: "./data")
-M, --messages Download dossier messages
-A, --avis Download dossier avis
-G, --geo Download geo files
--token API token
-h, --help display help for command
``````bash
ds-api-client help dossiers
```
```
Usage: ds-api-client dossiers [options]List or download dossiers from a demarche
Arguments:
demarcheNumber Demarche numberOptions:
-f, --first Take first dossiers
-l, --last Take last dossiers
-a, --after After cursor
-b, --before Before cursor
-s, --since Dossiers updated since
-d, --download Download files
-t, --table Show dossier details
-p, --paginate Follow pagination
-P, --parallel Download in parallel files (default: 20)
-o, --outdir Output directory (default: "./data")
-c, --clean Clean output directory
-M, --messages Download dossier messages
-A, --avis Download dossier avis
-G, --geo Download geo files
--token API token
-h, --help display help for command
``````bash
ds-api-client help demarche
```
```
Usage: ds-api-client demarche [options]Get demarche schema
Arguments:
demarcheNumber Demarche numberOptions:
--no-color No colors
-j, --json Print schema as JSON
--token API token
-h, --help display help for command
```