Skip to content

Commit

Permalink
feat: doc.go
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Sep 22, 2023
1 parent f0e2412 commit 44434a7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Package sumup provides a client for using the SumUp API.
/*
Usage:
import "github.com/sumup/sumup-go"
Construct a new SumUp client, then use the various services on the client to
access different parts of the SumUp API. For example:
client := sumup.NewClient().WithAuth(os.Getenv("SUMUP_KEY"))
// get the account the client is currently authorized for
account, err := client.Merchant.Get(context.Background(), sumup.GetAccountParams{})
The client is structured around individual services that correspond to the tags
in SumUp documentation https://developer.sumup.com/docs/api/sum-up-rest-api/.
*/
package sumup

0 comments on commit 44434a7

Please sign in to comment.