Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.6.0, Speakeay CLI 1.18.9
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Mar 27, 2023
1 parent 15f4cb4 commit 5bcc3ba
Show file tree
Hide file tree
Showing 63 changed files with 4,846 additions and 1 deletion.
152 changes: 152 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# supaglue

<!-- Start SDK Installation -->
## SDK Installation

```bash
go get github.com/chase-crumbaugh/supaglue-test
```
<!-- End SDK Installation -->

## SDK Example Usage
<!-- Start SDK Example Usage -->
```go
package main

import (
"context"
"log"
"supaglue"
"supaglue/pkg/models/shared"
"supaglue/pkg/models/operations"
)

func main() {
s := sdk.New(
sdk.WithSecurity(shared.Security{
APIKeyAuth: shared.SchemeAPIKeyAuth{
APIKey: "YOUR_API_KEY_HERE",
},
}),
)

req := operations.CreateAccountRequest{
Headers: operations.CreateAccountHeaders{
XCustomerID: "my-customer-1",
XProviderName: "salesforce",
},
Request: operations.CreateAccountRequestBody{
Model: shared.CreateUpdateAccount{
Addresses: []shared.Addresses{
shared.Addresses{
AddressType: "other",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
shared.Addresses{
AddressType: "billing",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
shared.Addresses{
AddressType: "shipping",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
},
CustomFields: map[string]interface{}{
"vero": "perspiciatis",
"nulla": "nihil",
"fuga": "facilis",
},
Description: "Integration API",
Industry: "API's",
Name: "Sample Customer",
NumberOfEmployees: 276000,
OwnerID: "9f3e97fd-4d5d-4efc-959d-bbebfac079f5",
PhoneNumbers: []shared.PhoneNumbers{
shared.PhoneNumbers{
PhoneNumber: "+14151234567",
PhoneNumberType: "mobile",
},
shared.PhoneNumbers{
PhoneNumber: "+14151234567",
PhoneNumberType: "primary",
},
},
Website: "https://supaglue.com/",
},
},
}

ctx := context.Background()
res, err := s.Accounts.Create(ctx, req)
if err != nil {
log.Fatal(err)
}

if res.CreateAccount201ApplicationJSONObject != nil {
// handle response
}
}
```
<!-- End SDK Example Usage -->

<!-- Start SDK Available Operations -->
## SDK Available Operations


### Accounts

* `Create` - Create account
* `Get` - Get account
* `List` - List accounts
* `Search` - Search accounts
* `Update` - Update account

### Contacts

* `Create` - Create contact
* `Get` - Get contact
* `List` - List contacts
* `Search` - Search contacts
* `Update` - Update contact

### Leads

* `Create` - Create lead
* `Get` - Get lead
* `List` - List leads
* `Update` - Update lead

### Opportunities

* `Create` - Create opportunity
* `Get` - Get opportunity
* `List` - List opportunities
* `Search` - Search Opportunities
* `Update` - Update opportunity

### Passthrough

* `Send` - Send passthrough request

### Users

* `Get` - Get user
* `List` - List users
<!-- End SDK Available Operations -->

### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
9 changes: 9 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@


## 2023-03-27 20:05:36
### Changes
Based on:
- OpenAPI Doc 0.6.0 https://prod.speakeasyapi.dev/v1/apis/test-2-27/version/v1/schema/download
- Speakeasy CLI 1.18.9 (2.16.4) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.0.0] https://github.com/chase-crumbaugh/supaglue-test/releases/tag/v1.0.0 - .
94 changes: 94 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!-- Start SDK Example Usage -->
```go
package main

import (
"context"
"log"
"supaglue"
"supaglue/pkg/models/shared"
"supaglue/pkg/models/operations"
)

func main() {
s := sdk.New(
sdk.WithSecurity(shared.Security{
APIKeyAuth: shared.SchemeAPIKeyAuth{
APIKey: "YOUR_API_KEY_HERE",
},
}),
)

req := operations.CreateAccountRequest{
Headers: operations.CreateAccountHeaders{
XCustomerID: "my-customer-1",
XProviderName: "salesforce",
},
Request: operations.CreateAccountRequestBody{
Model: shared.CreateUpdateAccount{
Addresses: []shared.Addresses{
shared.Addresses{
AddressType: "other",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
shared.Addresses{
AddressType: "billing",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
shared.Addresses{
AddressType: "shipping",
City: "San Francisco",
Country: "USA",
PostalCode: "94107",
State: "CA",
Street1: "525 Brannan",
Street2: "null",
},
},
CustomFields: map[string]interface{}{
"vero": "perspiciatis",
"nulla": "nihil",
"fuga": "facilis",
},
Description: "Integration API",
Industry: "API's",
Name: "Sample Customer",
NumberOfEmployees: 276000,
OwnerID: "9f3e97fd-4d5d-4efc-959d-bbebfac079f5",
PhoneNumbers: []shared.PhoneNumbers{
shared.PhoneNumbers{
PhoneNumber: "+14151234567",
PhoneNumberType: "mobile",
},
shared.PhoneNumbers{
PhoneNumber: "+14151234567",
PhoneNumberType: "primary",
},
},
Website: "https://supaglue.com/",
},
},
}

ctx := context.Background()
res, err := s.Accounts.Create(ctx, req)
if err != nil {
log.Fatal(err)
}

if res.CreateAccount201ApplicationJSONObject != nil {
// handle response
}
}
```
<!-- End SDK Example Usage -->
Loading

0 comments on commit 5bcc3ba

Please sign in to comment.