vendor: add github.com/koofr/go-koofrclient

* added koofr client SDK dep for koofr backend
This commit is contained in:
jaKa 2019-02-13 14:05:59 +01:00 committed by Nick Craig-Wood
parent 27714e29c3
commit 1d14e30383
22 changed files with 1461 additions and 0 deletions

View file

@ -0,0 +1,25 @@
package koofrclient
import (
"net/http"
"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
}