MCPcopy Create free account
hub / github.com/algolia/cli / Get

Method Get

api/crawler/client.go:215–228  ·  view source on GitHub ↗

Get gets a Crawler.

(crawlerID string, withConfig bool)

Source from the content-addressed store, hash-verified

213
214// Get gets a Crawler.
215func (c *Client) Get(crawlerID string, withConfig bool) (*Crawler, error) {
216 var res Crawler
217 path := fmt.Sprintf("crawlers/%s", crawlerID)
218 params := map[string]string{
219 "withConfig": fmt.Sprintf("%t", withConfig),
220 }
221
222 err := c.request(&res, http.MethodGet, path, nil, params)
223 if err != nil {
224 return nil, err
225 }
226
227 return &res, nil
228}
229
230// Run runs a Crawler.
231// It returns the Task ID if successful.

Callers 15

LoadTokenFunction · 0.80
StartCallbackServerFunction · 0.80
newCrawlerTestServerFunction · 0.80
Test_runExportCmdFunction · 0.80
Test_runExportCmdFunction · 0.80
runGetCmdFunction · 0.80
runListCmdFunction · 0.80
runUnblockCmdFunction · 0.80
getLatestReleaseInfoFunction · 0.80

Calls 1

requestMethod · 0.95