Skip to content

feat: add CreateAccount call#5

Open
chuhlomin wants to merge 1 commit intomainfrom
feat/account
Open

feat: add CreateAccount call#5
chuhlomin wants to merge 1 commit intomainfrom
feat/account

Conversation

@chuhlomin
Copy link
Contributor

This PR adds implementation for POST /accounts request that creates new account and assigns plan keys to it.

Example usage:

ctx := context.Background()
client := kickplan.NewClient()

// Create new account with "free" and "pro" plans
err := client.CreateAccount(ctx, "key", "Name", "free", "pro")
if err != nil {
	log.Fatalf("failed to create account: %v", err)
}

@chuhlomin chuhlomin requested a review from BJClark December 29, 2023 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant