Handle >30 day -since · Issue #16 · graphaelli/zat · GitHub
Skip to content

Handle >30 day -since #16

Description

@graphaelli

It seems that using from > 30 days ago in:

zat/zoom/zoom.go

Lines 252 to 269 in d93387a

func (c *Client) ListRecordings(since time.Time, nextPageToken string) (*ListRecordingsResponse, error) {
var j ListRecordingsResponse
req, err := c.NewApiRequest(http.MethodGet, "v2/users/me/recordings")
if err != nil {
return nil, fmt.Errorf("while building ListRecordings request: %w", err)
}
v := req.URL.Query()
v.Set("from", since.Format(timeQuery))
v.Set("page_size", "300") // max
if nextPageToken != "" {
v.Set("next_page_token", nextPageToken)
}
req.URL.RawQuery = v.Encode()
if _, err := c.Do(req, &j); err != nil {
return nil, fmt.Errorf("while executing ListRecordings request: %w", err)
}
return &j, nil
}

results in zoom returning only recordings from the last 30 days. This isn't mentioned in the api docs but could be worked around by breaking up the requests into 30 days chunks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions