Ajouter et implémenter PresencesGET

This commit is contained in:
Victor Lacasse-Beaudoin 2023-10-02 14:08:03 -04:00
parent 75b0819ae4
commit 29b4d0da31
4 changed files with 47 additions and 1 deletions

View file

@ -20,3 +20,7 @@ func (a *APIClient) Scan(membreID string) (response apiresponse.ScanPOST, err er
func (a *APIClient) GetDecompte() (response apiresponse.DecompteGET, err error) {
return response, a.Voki.Unmarshal(http.MethodGet, "/v0/decompte", nil, true, &response)
}
func (a *APIClient) GetPresences() (response apiresponse.PresencesGET, err error) {
return response, a.Voki.Unmarshal(http.MethodGet, "/v0/presences", nil, true, &response)
}