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

Add the api package to interact with a server - #318

Merged
noahingh merged 3 commits into
mainfrom
api-pkg
Feb 1, 2022
Merged

Add the api package to interact with a server#318
noahingh merged 3 commits into
mainfrom
api-pkg

Conversation

@noahingh

@noahinghnoahingh commented Feb 1, 2022

Copy link
Copy Markdown
Member

#313

funcmain() {
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, ...)
}

@noahinghnoahingh added enhancement New feature or request component: cli This issue or pull request is related to the features of CLI labels Feb 1, 2022
@noahinghnoahingh 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 mainFeb 1, 2022
@noahingh
noahingh deleted the api-pkg branch February 1, 2022 09:57
@noahinghnoahingh added this to the v0.6 milestone Feb 1, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

component: cliThis issue or pull request is related to the features of CLIenhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design the client package API

1 participant

@noahingh