Working auth and photo json endpoint
Signed-off-by: Kris Nóva <kris@nivenly.com>
This commit is contained in:
parent
ef275f97f4
commit
e4323b6047
2032 changed files with 821464 additions and 52 deletions
|
@ -89,12 +89,6 @@ func (v1 *V1Client) GetPhoto(uuid string) (*Photo, error) {
|
|||
return nil, fmt.Errorf("unable to parse body: %v", err)
|
||||
}
|
||||
|
||||
// The API returns HTML so we have to hack this shit up
|
||||
// TODO @kris-nova This is where we left off
|
||||
// TODO It looks like the API is returning HTML SMDH...
|
||||
//fmt.Println(string(bytes))
|
||||
//return nil, nil
|
||||
|
||||
err = json.Unmarshal(bytes, &photo)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("unable to JSON unmarshal response body: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue