File tree Expand file tree Collapse file tree 3 files changed +44
-8
lines changed
Expand file tree Collapse file tree 3 files changed +44
-8
lines changed Original file line number Diff line number Diff line change 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
343This 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.
Original file line number Diff line number Diff line change 11module flexprice/go-sdk/examples
22
3- replace github.com/flexprice/go-sdk => ../
4-
53go 1.23.2
64
75require (
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)
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ github.com/flexprice/go-sdk v0.0.0-20250329074619-d9c429902d5d h1:un0cxhDFzYJhuS
44github.com/flexprice/go-sdk v0.0.0-20250329074619-d9c429902d5d /go.mod h1:bfDOr/VXPXWZVVbNnF6bO0jHqUu1cDa0Hfge0xHDEBU =
55github.com/flexprice/go-sdk v1.0.1 h1:k2FN+3z6hUc9OnxgaMro9QlDai0YDBM6f0ENTpfdhzk =
66github.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 =
79github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0 =
810github.com/joho/godotenv v1.5.1 /go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4 =
911github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
You can’t perform that action at this time.
0 commit comments