Skip to content

Commit 2e9b7bf

Browse files
author
Flexprice SDK Bot
committed
Update SDK to version 1.0.10
1 parent 8f8512d commit 2e9b7bf

File tree

3 files changed

+44
-8
lines changed

3 files changed

+44
-8
lines changed

README.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
# Flexprice Go SDK
2+
3+
The official Go client library for Flexprice API
4+
5+
## Installation
6+
7+
```bash
8+
go get github.com/flexprice/go-sdk
9+
```
10+
11+
## Usage
12+
13+
```go
14+
package main
15+
16+
import (
17+
"context"
18+
"fmt"
19+
"os"
20+
21+
"github.com/flexprice/go-sdk"
22+
)
23+
24+
func main() {
25+
// Initialize client with API key
26+
client := flexprice.NewClient(os.Getenv("FLEXPRICE_API_KEY"))
27+
28+
// For example, to get customer details
29+
customer, err := client.Customers.Get(context.Background(), "customer_id")
30+
if err != nil {
31+
fmt.Printf("Error: %v\n", err)
32+
return
33+
}
34+
35+
fmt.Printf("Customer: %+v\n", customer)
36+
}
37+
```
38+
39+
## API Documentation
40+
141
# FlexPrice Go SDK
242

343
This is the Go client library for the FlexPrice API.
@@ -217,8 +257,4 @@ The async client provides several advantages:
217257

218258
## Documentation
219259

220-
For detailed API documentation, refer to the code comments and the official FlexPrice API documentation.
221-
222-
## Auto-Generated API Documentation
223-
224-
260+
For detailed API documentation, refer to the code comments and the official FlexPrice API documentation.

examples/go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
module flexprice/go-sdk/examples
22

3-
replace github.com/flexprice/go-sdk => ../
4-
53
go 1.23.2
64

75
require (
8-
github.com/flexprice/go-sdk v1.0.1
6+
github.com/flexprice/go-sdk v1.0.10
97
github.com/joho/godotenv v1.5.1
108
github.com/samber/lo v1.49.1
119
)

examples/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ github.com/flexprice/go-sdk v0.0.0-20250329074619-d9c429902d5d h1:un0cxhDFzYJhuS
44
github.com/flexprice/go-sdk v0.0.0-20250329074619-d9c429902d5d/go.mod h1:bfDOr/VXPXWZVVbNnF6bO0jHqUu1cDa0Hfge0xHDEBU=
55
github.com/flexprice/go-sdk v1.0.1 h1:k2FN+3z6hUc9OnxgaMro9QlDai0YDBM6f0ENTpfdhzk=
66
github.com/flexprice/go-sdk v1.0.1/go.mod h1:ba0SiRO4N5iIQenGMIyvk/0lOuzhf1vji3M3D0SxBKg=
7+
github.com/flexprice/go-sdk v1.0.10 h1:swBtC0r2mgUGY2Le0OTpjB8xGDWPQBAeIeuRWZpxZGQ=
8+
github.com/flexprice/go-sdk v1.0.10/go.mod h1:ba0SiRO4N5iIQenGMIyvk/0lOuzhf1vji3M3D0SxBKg=
79
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
810
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
911
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

0 commit comments

Comments
 (0)