Ajouter décompte

This commit is contained in:
Victor Lacasse-Beaudoin 2023-09-19 18:25:12 -04:00
parent 7351f970f7
commit 6c09f1fa65
9 changed files with 126 additions and 1 deletions

View file

@ -14,6 +14,9 @@ type APIClient struct {
}
func (a *APIClient) Scan(membreID string) (response apiresponse.ScanPOST, err error) {
//TODO implement api key
return response, a.Voki.Unmarshal(http.MethodPost, fmt.Sprintf("/v0/scan/%s", membreID), nil, true, &response)
}
func (a *APIClient) GetDecompte() (response apiresponse.DecompteGET, err error) {
return response, a.Voki.Unmarshal(http.MethodGet, "/v0/decompte", nil, true, &response)
}