π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix API request
Neeraj Guptaba7d0c4493c8
diff --git a/internal/api/collection.go b/internal/api/collection.goindex 2b24145a60..41e387be55 100644--- a/internal/api/collection.go+++ b/internal/api/collection.go@@ -1,16 +1,19 @@package api-import "context"+import (+ "context"+ "strconv"+)-func (c *Client) GetCollections(ctx context.Context, sinceTime int) ([]Collection, error) {+func (c *Client) GetCollections(ctx context.Context, sinceTime int64) ([]Collection, error) {var res struct {Collections []Collection `json:"collections"`}r, err := c.restClient.R().SetContext(ctx).- SetQueryParam("since", "0").+ SetQueryParam("sinceTime", strconv.FormatInt(sinceTime, 10)).SetResult(&res).- Get("/collections")+ Get("/collections/v2")if r.IsError() {return nil, &ApiError{StatusCode: r.StatusCode(),