Principal call fixes and adding vendor

This commit is contained in:
gfleury
2018-03-15 11:31:45 +01:00
parent fa8ce9c2a0
commit f6de69b5d7
9 changed files with 1691 additions and 22 deletions

View File

@ -16,12 +16,19 @@ func main() {
client := bitbucketv1.NewAPIClient(
ctx,
bitbucketv1.NewConfiguration("http://amazonaws.com/rest"),
bitbucketv1.NewConfiguration("https://stash.domain.com/rest"),
)
response, err := client.DefaultApi.GetUsers(nil)
username := "george.fleury"
response, err := client.DefaultApi.GetSSHKeys(username)
if err != nil {
fmt.Printf("%s\n", err.Error())
}
fmt.Printf("%v", response)
repos, err := bitbucketv1.GetRepositoriesResponse(response)
if err == nil {
for _, repo := range repos {
fmt.Println(repo.Name)
}
}
}