Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tusker API integration #3

Closed
6 tasks done
djudjuu opened this issue Mar 2, 2021 · 0 comments · Fixed by #13
Closed
6 tasks done

Tusker API integration #3

djudjuu opened this issue Mar 2, 2021 · 0 comments · Fixed by #13
Assignees

Comments

@djudjuu
Copy link
Contributor

djudjuu commented Mar 2, 2021

Write a client and/or dataclass that

  • insomnia collection to hit endpoints
  • [ ] gets the credentials from some config/ .env file => do when moving to production
  • get invoices
    • pulls data for a given phone number, gets the customer ID then gets all invoices/shipments from that customer
    • do some meaningful filtering (e.g. going back at most until a date X (we dont want to pull super old data). but definitely want to get the latest versions of all invoices that we have in our DB
  • has a helper that transforms the data from what we are getting from Tusker into what we can use to insert into our DB
  • as a start, return some mock-data that is approximately what we will be getting from Tusker
@djudjuu djudjuu self-assigned this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant