feat: add Go SDK support and examples to documentation
This commit is contained in:
@@ -90,6 +90,22 @@ for app in response.items.unwrap_or_default() {
|
||||
}
|
||||
```
|
||||
|
||||
```go
|
||||
import onspring "github.com/StevanFreeborn/onspring-api-sdk-go"
|
||||
|
||||
client := onspring.NewClient(
|
||||
"000000ffffff000000ffffff/00000000-ffff-0000-ffff-000000000000",
|
||||
)
|
||||
|
||||
page, _ := client.Apps.List(
|
||||
context.Background(),
|
||||
)
|
||||
|
||||
for _, app := range page.Items {
|
||||
fmt.Printf("%d, %s\n", app.Id, app.Name)
|
||||
}
|
||||
```
|
||||
|
||||
{% /code %}
|
||||
|
||||
{% code heading="RESPONSE" defaultLanguage="json" %}
|
||||
|
||||
Reference in New Issue
Block a user