Ajouter décompte
This commit is contained in:
parent
7351f970f7
commit
6c09f1fa65
9 changed files with 126 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue