Enhance the "getting started" docs a little more
@RettBehrens ci sta già lavorando.
Dal 15/4/2021.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Describe the bug
Seems the readme is missing some of the usual simple things I would expect for getting started, they can but found but it makes you have to go look for them.
How to install
I think these are both right but feel free to check/change:
`
npm install xero-node -D
yarn add xero-node
`
Include require statements in all demo code
Can we include the right import/require statements somewhere, had to do some guess work to find it:
const { XeroClient } = require("xero-node");
This won't work with SPA as we don't support it
I tried to use this in my SPA but its using loads of node only goodies so it failed. I then used it to as a crib sheet to try to make my own thin client to get it working (I only needed two API endpoints). But this fell down due to CORS errors/restrictions when got to actually trying to do the API calls (the OAuth stuff doesn't have this problem so lead me on a bit of a false start). Would really be worth a bit about the lack of CORS support and how a proxy or Lambda would be needed to do the heavy lifting instead. Would have saved me a day of swearing to know that up front.
All the above small bits of info would have saved me some time and head scratching, less friction so I can get to the good stuff quicker.
Cheers
Pete
- Lingua principale
- TypeScript
- Stelle
- 264
- Fork
- 177
- Merge medio
- 10h 5m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di XeroAPI/xero-node
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()Forse già presa @miachillgood l’ha presa 152 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 18/100
-
BankTransaction type is missing the batchPayment object.Forse già presa @miachillgood l’ha presa 171 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
Tutte le issue di XeroAPI/xero-node
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
super-productivity/super-productivity#12128 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at onceForse già presa @2389400626lh-ops l’ha presa oggi. ApertaArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
justyns/silverbullet-ai#199 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
spartan-ng/spartan#1931 ·
I maintainer di solito rispondono entro 2 giorni