Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: speakeasy sdk regeneration - Generate #11

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This allows generated code to be indexed correctly
*.go linguist-generated=false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# .gitignore
396 changes: 275 additions & 121 deletions README.md

Large diffs are not rendered by default.

72 changes: 71 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,74 @@ Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.12.0 https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v0.3.1] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.3.1 - .
- [Go v0.3.1] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.3.1 - .

## 2023-09-22 00:37:56
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.89.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.4.0] .
### Releases
- [Go v0.4.0] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.4.0 - .

## 2023-09-29 00:38:22
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.5.0] .
### Releases
- [Go v0.5.0] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.5.0 - .

## 2023-10-05 00:38:21
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.94.0 (2.147.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.6.0] .
### Releases
- [Go v0.6.0] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.6.0 - .

## 2023-10-07 00:37:52
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.6.1] .
### Releases
- [Go v0.6.1] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.6.1 - .

## 2023-10-14 00:37:20
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.99.2 (2.155.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.6.2] .
### Releases
- [Go v0.6.2] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.6.2 - .

## 2023-10-21 00:37:07
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.7.0] .
### Releases
- [Go v0.7.0] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.7.0 - .

## 2023-11-01 00:41:09
### Changes
Based on:
- OpenAPI Doc v1.0.0-rc.5 ./stack.yaml
- Speakeasy CLI 1.109.2 (2.173.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.7.1] .
### Releases
- [Go v0.7.1] https://github.com/speakeasy-sdks/formance-go-sdk/releases/tag/v0.7.1 - .
36 changes: 18 additions & 18 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<!-- Start SDK Example Usage -->


```go
package main

import (
"context"
"log"
"github.com/speakeasy-sdks/formance-go-sdk"
"github.com/speakeasy-sdks/formance-go-sdk/pkg/models/shared"
"github.com/speakeasy-sdks/formance-go-sdk/pkg/models/operations"
"context"
formancegosdk "github.com/speakeasy-sdks/formance-go-sdk"
"github.com/speakeasy-sdks/formance-go-sdk/pkg/models/shared"
"log"
)

func main() {
s := formance.New(
WithSecurity( shared.Security{
Authorization: "Bearer YOUR_ACCESS_TOKEN_HERE",
}),
)
s := formancegosdk.New(
formancegosdk.WithSecurity(""),
)

ctx := context.Background()
res, err := s.GetServerInfo(ctx)
if err != nil {
log.Fatal(err)
}
ctx := context.Background()
res, err := s.Formance.GetServerInfo(ctx)
if err != nil {
log.Fatal(err)
}

if res.ServerInfo != nil {
// handle response
}
if res.ServerInfo != nil {
// handle response
}
}

```
<!-- End SDK Example Usage -->
Loading