Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mitchbne/tanda-api
A little tool that I created that allows CSV data uploads through the Tanda API
https://github.com/mitchbne/tanda-api
tanda
Last synced: 3 days ago
JSON representation
A little tool that I created that allows CSV data uploads through the Tanda API
- Host: GitHub
- URL: https://github.com/mitchbne/tanda-api
- Owner: mitchbne
- License: mit
- Created: 2020-01-14T05:14:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:49:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-06T22:58:48.500Z (over 1 year ago)
- Topics: tanda
- Language: TypeScript
- Homepage: https://my.tanda.co/api/v2/documentation
- Size: 912 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ✨ Tanda API Data Upload
This is just a simple little application that takes a CSV of data and uploads it through the Tanda API.At the moment, this tool supports the following Tanda API endpoints:
- [Create StoreStats](https://my.tanda.co/api/v2/documentation#store-stats-create-store-stats-for-multiple-datastreams) `POST /api/v2/storestats/for_datastream`### Getting Started
1. You will need an `AUTH_TOKEN`. You can retrieve this when logged in at https://my.tanda.co/api/oauth/access_tokens.
**Make sure that you have the necessary scopes**.2. Clone the repository locally and install dependencies
```bash
git clone [email protected]:mitchbne/tanda-api.gityarn install
```
3. Create and modify ENVIRONMENTAL VARIABLES in a `.env` file```
# The current directory structure looks as follows:
.
├── csv_files/ <-- Insert the files that you want to be uploaded into this directory.
├── csv_templates/ <-- Use these templates to ensure your data is formatted correctly
├── src/
├── test/
├── .env <-- This is where you should include your .env file
├── README.md
├── package.json
└── yarn.lock# From here, you will need to create and modify a new file called '.env'.
# Add the following lines:AUTH_TOKEN=123456543234567876543245678765434567876543
```4. Use the appropriate template that you need from the `csv_templates/` folder. Duplicate this into the `csv_files/` folder and modify the file so that it uses the data that you need.
5. Start the application with the command `yarn dev`