Go to file
Philippe-Adrien Nousse a936492816 Removed interface, updated docs and README.md 2018-07-25 16:41:16 +02:00
cover Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
docs Removed interface, updated docs and README.md 2018-07-25 16:41:16 +02:00
types Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
vendor Updated vendor 2018-07-25 15:59:13 +02:00
.gitignore Nextcloud API Client, Uers/Response types, User list/search/get/create/delete 2018-07-05 12:50:56 +02:00
LICENCE Added Licence 2018-07-09 13:40:45 +02:00
README.md Removed interface, updated docs and README.md 2018-07-25 16:41:16 +02:00
apps.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
auth.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
client.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
coverage.html Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
gonextcloud.iml Nextcloud API Client, Uers/Response types, User list/search/get/create/delete 2018-07-05 12:50:56 +02:00
gonextcloud_test.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
groups.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
routes.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
users.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00
utils.go Added Apps support, added full UserUpdate and create 2018-07-25 15:06:31 +02:00

README.md

[WIP] Nextcloud Go API Client

A simple Client for Nextcloud's API in Go.

gonextcloud

    import "github.com/partitio/gonextcloud/client"

Usage

package main

import (
	"fmt"
	"github.com/partitio/gonextcloud"
)

func main() {
	url := "https://www.mynextcloud.com"
	username := "admin"
	password := "password"
	c, err := gonextcloud.NewClient(url)
	if err != nil {
		panic(err)
	}
	if err := c.Login(username, password); err != nil {
		panic(err)
	}
	defer c.Logout()
}

type Client

type Client struct {
}

func NewClient

func NewClient(hostname string) (*Client, error)

func (*Client) AppDisable

func (c *Client) AppDisable(name string) error

func (*Client) AppEnable

func (c *Client) AppEnable(name string) error

func (*Client) AppInfos

func (c *Client) AppInfos(name string) (types.App, error)

func (*Client) AppList

func (c *Client) AppList() ([]string, error)

func (*Client) AppListDisabled

func (c *Client) AppListDisabled() ([]string, error)

func (*Client) AppListEnabled

func (c *Client) AppListEnabled() ([]string, error)

func (*Client) GroupCreate

func (c *Client) GroupCreate(name string) error

func (*Client) GroupDelete

func (c *Client) GroupDelete(name string) error

func (*Client) GroupList

func (c *Client) GroupList() ([]string, error)

func (*Client) GroupSearch

func (c *Client) GroupSearch(search string) ([]string, error)

func (*Client) GroupSubAdminList

func (c *Client) GroupSubAdminList(name string) ([]string, error)

func (*Client) GroupUsers

func (c *Client) GroupUsers(name string) ([]string, error)

func (*Client) Login

func (c *Client) Login(username string, password string) error

func (*Client) Logout

func (c *Client) Logout() error

func (*Client) User

func (c *Client) User(name string) (*types.User, error)

func (*Client) UserCreate

func (c *Client) UserCreate(username string, password string, user *types.User) error

func (*Client) UserDelete

func (c *Client) UserDelete(name string) error

func (*Client) UserDisable

func (c *Client) UserDisable(name string) error

func (*Client) UserEnable

func (c *Client) UserEnable(name string) error

func (*Client) UserGroupAdd

func (c *Client) UserGroupAdd(name string, group string) error

func (*Client) UserGroupDemote

func (c *Client) UserGroupDemote(name string, group string) error

func (*Client) UserGroupList

func (c *Client) UserGroupList(name string) ([]string, error)

func (*Client) UserGroupPromote

func (c *Client) UserGroupPromote(name string, group string) error

func (*Client) UserGroupRemove

func (c *Client) UserGroupRemove(name string, group string) error

func (*Client) UserGroupSubAdminList

func (c *Client) UserGroupSubAdminList(name string) ([]string, error)

func (*Client) UserList

func (c *Client) UserList() ([]string, error)

func (*Client) UserSearch

func (c *Client) UserSearch(search string) ([]string, error)

func (*Client) UserSendWelcomeEmail

func (c *Client) UserSendWelcomeEmail(name string) error

func (*Client) UserUpdate

func (c *Client) UserUpdate(user *types.User) error

func (*Client) UserUpdateAddress

func (c *Client) UserUpdateAddress(name string, address string) error

func (*Client) UserUpdateDisplayName

func (c *Client) UserUpdateDisplayName(name string, displayName string) error

func (*Client) UserUpdateEmail

func (c *Client) UserUpdateEmail(name string, email string) error

func (*Client) UserUpdatePassword

func (c *Client) UserUpdatePassword(name string, password string) error

func (*Client) UserUpdatePhone

func (c *Client) UserUpdatePhone(name string, phone string) error

func (*Client) UserUpdateQuota

func (c *Client) UserUpdateQuota(name string, quota int) error

func (*Client) UserUpdateTwitter

func (c *Client) UserUpdateTwitter(name string, twitter string) error

func (*Client) UserUpdateWebSite

func (c *Client) UserUpdateWebSite(name string, website string) error

type Routes

type Routes struct {
}