mirror of
https://github.com/gabrie30/ghorg.git
synced 2025-08-13 09:47:11 +02:00
35 lines
844 B
Go
35 lines
844 B
Go
package bitbucket
|
|
|
|
type Users struct {
|
|
c *Client
|
|
}
|
|
|
|
func (u *Users) Get(t string) (interface{}, error) {
|
|
|
|
urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/"
|
|
return u.c.execute("GET", urlStr, "")
|
|
}
|
|
|
|
func (c *Client) Get(t string) (interface{}, error) {
|
|
|
|
urlStr := c.GetApiBaseURL() + "/users/" + t + "/"
|
|
return c.execute("GET", urlStr, "")
|
|
}
|
|
|
|
func (u *Users) Followers(t string) (interface{}, error) {
|
|
|
|
urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/followers"
|
|
return u.c.execute("GET", urlStr, "")
|
|
}
|
|
|
|
func (u *Users) Following(t string) (interface{}, error) {
|
|
|
|
urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/following"
|
|
return u.c.execute("GET", urlStr, "")
|
|
}
|
|
func (u *Users) Repositories(t string) (interface{}, error) {
|
|
|
|
urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/repositories"
|
|
return u.c.execute("GET", urlStr, "")
|
|
}
|