MCPcopy Create free account
hub / github.com/coah80/yoink / startBotConvert

Method startBotConvert

internal/bot/api.go:141–152  ·  view source on GitHub ↗
(fileURL, format string)

Source from the content-addressed store, hash-verified

139 }
140 return parseJobResponse(data, status)
141}
142
143func (a *apiClient) startBotConvert(fileURL, format string) (string, error) {
144 body := map[string]interface{}{
145 "url": fileURL,
146 "format": format,
147 }
148
149 data, status, err := a.doJSON("POST", "/api/bot/convert", body)
150 if err != nil {
151 return "", err
152 }
153 return parseJobResponse(data, status)
154}
155

Callers 1

processConvertMethod · 0.80

Calls 2

doJSONMethod · 0.95
parseJobResponseFunction · 0.85

Tested by

no test coverage detected