#1 OCS Shares API

This commit is contained in:
2018-08-08 16:04:06 +02:00
parent e03fd9fd88
commit 3c45f09874
9 changed files with 248 additions and 20 deletions

View File

@ -41,7 +41,7 @@ func (c *Client) baseRequest(route *url.URL, name string, subroute string, ro *r
js := res.String()
var r types.BaseResponse
json.Unmarshal([]byte(js), &r)
if r.Ocs.Meta.Statuscode != 100 {
if r.Ocs.Meta.Statuscode != 200 {
err := types.ErrorFromMeta(r.Ocs.Meta)
return nil, err
}