updated project url

This commit is contained in:
2018-10-26 15:35:50 +02:00
parent 16ca38c4e4
commit 0a52ba39d7
19 changed files with 49 additions and 49 deletions

View File

@ -1,7 +1,7 @@
# gonextcloud
```go
import "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"
import "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
```
Package gonextcloud is a Go client for the Nextcloud Provisioning API.
@ -16,32 +16,32 @@ You use the library by creating a client object and calling methods on it.
For example, to list all the Nextcloud's instance users:
```go
package main
package main
import (
"fmt"
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
)
import (
"fmt"
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
)
func main() {
url := "https://www.mynextcloud.com"
username := "admin"
password := "password"
c, err := client.NewClient(url)
if err != nil {
panic(err)
}
if err := c.Login(username, password); err != nil {
panic(err)
}
defer c.Logout()
users, err := c.Users.List()
if err != nil {
panic(err)
}
fmt.Println("Users :", users)
func main() {
url := "https://www.mynextcloud.com"
username := "admin"
password := "password"
c, err := client.NewClient(url)
if err != nil {
panic(err)
}
if err := c.Login(username, password); err != nil {
panic(err)
}
defer c.Logout()
users, err := c.Users.List()
if err != nil {
panic(err)
}
fmt.Println("Users :", users)
}
```
#### type Client