Skip to content

Commit

Permalink
feat: run
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed May 11, 2024
1 parent afdb39f commit b070fee
Show file tree
Hide file tree
Showing 151 changed files with 11,435 additions and 34 deletions.
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
2 changes: 1 addition & 1 deletion .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lockVersion: 2.0.0
id: 11283a56-f15d-4d3d-800a-2b51a30683a2
id: 4fc4737a-135f-4840-8e6d-42a2b2a2884b
management:
docChecksum: a715ffbc95c5418289d86dc35921e0e8
docVersion: 1.0.0
Expand Down
33 changes: 33 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!-- Start SDK Example Usage [usage] -->
```go
package main

import (
"context"
unkeygo "github.com/unkeyed/unkey-go"
"github.com/unkeyed/unkey-go/models/components"
"github.com/unkeyed/unkey-go/models/operations"
"log"
)

func main() {
s := unkeygo.New(
unkeygo.WithSecurity("<YOUR_BEARER_TOKEN_HERE>"),
)

request := operations.CreateAPIRequestBody{
Name: "my-api",
}

ctx := context.Background()
res, err := s.CreateAPI(ctx, request)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}

```
<!-- End SDK Example Usage [usage] -->
Loading

0 comments on commit b070fee

Please sign in to comment.