rclone/vendor/github.com/koofr/go-koofrclient/client_shared.go

26 lines
436 B
Go
Raw Normal View History

package koofrclient
import (
"net/http"
2019-08-14 13:56:32 +00:00
"github.com/koofr/go-httpclient"
)
func (c *KoofrClient) Shared() (shared []Shared, err error) {
d := &struct {
Files *[]Shared
}{&shared}
request := httpclient.RequestData{
Method: "GET",
Path: "/api/v2/shared",
ExpectedStatus: []int{http.StatusOK},
RespEncoding: httpclient.EncodingJSON,
RespValue: &d,
}
_, err = c.Request(&request)
return
}