Working photo and album endpoints with super amazing unit and itnegrations tests - please run my fucking code i dare you

Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
Kris Nóva 2021-02-11 17:25:03 -08:00
parent 194f0acb28
commit c78e3d199e
14 changed files with 184 additions and 75 deletions

View file

@ -146,6 +146,6 @@ func (v1 *V1Client) DeletePhotosFromAlbum(albumUUID string, photoIDs []string) e
func (v1 *V1Client) GetAlbumDownload(uuid string) ([]byte, error) {
// NOTE: Even though this method is singular GetAlbum
// if will call the "albums" plural endpoint.
resp := v1.GET("/api/v1/albums/%s", uuid)
resp := v1.GET("/api/v1/albums/%s?t=%s", uuid, v1.downloadToken)
return resp.Body, resp.Error
}