Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Conversation

@noahingh
Copy link
Member

@noahingh noahingh commented Feb 1, 2022

#313

func main() {
	ctx := context.Background()
	ts := oauth2.StaticTokenSource(
		&oauth2.Token{AccessToken: "... your access token ..."},
	)
        tc := oauth2.NewClient(ctx, ts)
        
        c := api.NewClient("https://cloud.gitploy.io/", tc)
        ds, _ := c.Search.ListDeployments(ctx, ...)
}

@noahingh noahingh added enhancement New feature or request component: cli This issue or pull request is related to the features of CLI labels Feb 1, 2022
@noahingh noahingh linked an issue Feb 1, 2022 that may be closed by this pull request
@noahingh noahingh marked this pull request as ready for review February 1, 2022 09:42
@noahingh noahingh merged commit 0ad4402 into main Feb 1, 2022
@noahingh noahingh deleted the api-pkg branch February 1, 2022 09:57
@noahingh noahingh added this to the v0.6 milestone Feb 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component: cli This issue or pull request is related to the features of CLI enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design the client package API

2 participants