Panora API: A unified API to ship integrations
package main
import(
gosdk "github.com/panoratech/go-sdk"
"context"
"log"
)
func main() {
s := gosdk.New(
gosdk.WithSecurity("<YOUR_API_KEY_HERE>"),
)
ctx := context.Background()
res, err := s.Hello(ctx)
if err != nil {
log.Fatal(err)
}
if res.Res != nil {
// handle response
}
}
*operations.HelloResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.SDKError |
4XX, 5XX |
*/* |
package main
import(
gosdk "github.com/panoratech/go-sdk"
"context"
"log"
)
func main() {
s := gosdk.New(
gosdk.WithSecurity("<YOUR_API_KEY_HERE>"),
)
ctx := context.Background()
res, err := s.Health(ctx)
if err != nil {
log.Fatal(err)
}
if res.Number != nil {
// handle response
}
}
*operations.HealthResponse, error
Error Type |
Status Code |
Content Type |
sdkerrors.SDKError |
4XX, 5XX |
*/* |