MCPcopy Create free account
hub / github.com/Mrs4s/six-cli / PostJsonObject

Method PostJsonObject

models/httpclient.go:36–42  ·  view source on GitHub ↗
(url string, body B)

Source from the content-addressed store, hash-verified

34}
35
36func (cli *SixHttpClient) PostJsonObject(url string, body B) string {
37 b, err := json.Marshal(body)
38 if err != nil {
39 return ""
40 }
41 return cli.PostJson(url, string(b))
42}
43
44func (cli *SixHttpClient) PostJson(url, body string) string {
45 req, err := http.NewRequest("POST", url, strings.NewReader(body))

Callers 12

CreateDestinationFunction · 0.95
LoginWithWebTokenFunction · 0.95
RefreshUserInfoMethod · 0.80
GetFilesByPathMethod · 0.80
GetOfflineTasksMethod · 0.80
CreateDirectoryMethod · 0.80
DeleteFileMethod · 0.80
SearchFilesByNameMethod · 0.80
PreparseOfflineMethod · 0.80
AddOfflineTaskMethod · 0.80
CreateUploadTokenMethod · 0.80

Calls 1

PostJsonMethod · 0.95

Tested by

no test coverage detected