-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: regenerated with OpenAPI Doc 0.6.0, Speakeay CLI 1.18.9
- Loading branch information
1 parent
15f4cb4
commit 5bcc3ba
Showing
63 changed files
with
4,846 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --> |
Oops, something went wrong.