Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionsForEndpoint ¶
func OptionsForEndpoint(cfg apicrawlcmd.Crawl[Service], token *apitokens.T) ([]operations.Option, error)
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Çommand implements the command line operations available for papersapp.com.
func NewCommand ¶
func NewCommand(crawl apicrawlcmd.Crawl[yaml.Node], cfs operations.FS, token *apitokens.T) (*Command, error)
NewCommand returns a new Command instance for the specified API crawl with API authentication information read from the specified file or from the context.
type CrawlFlags ¶
type CrawlFlags struct{}
type Service ¶
type Service struct { ServiceURL string `yaml:"service_url" cmd:"papersapp service URL, typically https://api.papers.ai"` RefreshTokenURL string `yaml:"refresh_token_url" cmd:"papersapp refresh token URL, typically https://api.papers.ai/oauth/token"` ListItemsPageSize int `yaml:"list_items_page_size" cmd:"number of items in each page of results, typically 50"` }
Click to show internal directories.
Click to hide internal directories.