Files
go-midjourney/archive.go
Jim Myhrberg e6b9af36de feat(client)!: simplify Client by extracting API methods to APIClient
BREAKING CHANGE: All API request related moved from Client to APIClient type.
2022-12-11 21:39:48 +00:00

21 lines
372 B
Go

package midjourney
import (
"context"
"net/url"
"time"
)
func (c *Client) ArchiveDay(
ctx context.Context,
date time.Time,
) (jobIDs []string, err error) {
err = c.API.Get(ctx, "app/archive/day", url.Values{
"day": []string{date.Format("2")},
"month": []string{date.Format("1")},
"year": []string{date.Format("2006")},
}, &jobIDs)
return jobIDs, err
}