mirror of
https://github.com/jimeh/go-midjourney.git
synced 2026-02-19 01:46:41 +00:00
BREAKING CHANGE: All API request related moved from Client to APIClient type.
21 lines
372 B
Go
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
|
|
}
|