MCPcopy Create free account
hub / github.com/exercism/cli / NewClient

Function NewClient

api/client.go:32–38  ·  view source on GitHub ↗

NewClient returns an Exercism API client.

(token, baseURL string)

Source from the content-addressed store, hash-verified

30
31// NewClient returns an Exercism API client.
32func NewClient(token, baseURL string) (*Client, error) {
33 return &Client{
34 Client: HTTPClient,
35 Token: token,
36 APIBaseURL: baseURL,
37 }, nil
38}
39
40// NewRequest returns an http.Request with information for the Exercism API.
41func (c *Client) NewRequest(method, url string, body io.Reader) (*http.Request, error) {

Callers 4

submitMethod · 0.92
runConfigureFunction · 0.92
runDownloadFunction · 0.92
newDownloadFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected