Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
105 changes: 69 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,66 +19,99 @@ go get github.com/fabra-io/go-sdk
```go
package main

import(
import (
"context"
gosdk "github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/shared"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/operations"
)

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

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, 548814)
if err != nil {
log.Fatal(err)
}

if res.Namespaces != nil {
// handle response
}
s := gosdk.New(
gosdk.WithSecurity(""),
)

var connectionID int64 = 995455

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, connectionID)
if err != nil {
log.Fatal(err)
}

if res.Namespaces != nil {
// handle response
}
}

```
<!-- End SDK Example Usage -->

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


### [Connection](docs/connection/README.md)
### [Connection](docs/sdks/connection/README.md)

* [GetNamespaces](docs/sdks/connection/README.md#getnamespaces) - Get all namespaces
* [GetSchema](docs/sdks/connection/README.md#getschema) - Get schema for table
* [GetTables](docs/sdks/connection/README.md#gettables) - Get all tables

### [CustomerData](docs/sdks/customerdata/README.md)

* [GetNamespaces](docs/connection/README.md#getnamespaces) - Get all namespaces
* [GetSchema](docs/connection/README.md#getschema) - Get schema for table
* [GetTables](docs/connection/README.md#gettables) - Get all tables
* [QueryObject](docs/sdks/customerdata/README.md#queryobject) - Query object record for customer

### [Destination](docs/destination/README.md)
### [Destination](docs/sdks/destination/README.md)

* [CreateDestination](docs/destination/README.md#createdestination) - Create a new destination
* [GetDestinations](docs/destination/README.md#getdestinations) - Get all destinations
* [CreateDestination](docs/sdks/destination/README.md#createdestination) - Create a new destination
* [GetDestinations](docs/sdks/destination/README.md#getdestinations) - Get all destinations

### [LinkToken](docs/linktoken/README.md)
### [LinkToken](docs/sdks/linktoken/README.md)

* [CreateLinkToken](docs/linktoken/README.md#createlinktoken) - Create a new link token
* [CreateLinkToken](docs/sdks/linktoken/README.md#createlinktoken) - Create a new link token

### [Object](docs/object/README.md)
### [Object](docs/sdks/object/README.md)

* [CreateObject](docs/object/README.md#createobject) - Create a new object
* [GetObjects](docs/object/README.md#getobjects) - Get all objects
* [CreateObject](docs/sdks/object/README.md#createobject) - Create a new object
* [GetObjects](docs/sdks/object/README.md#getobjects) - Get all objects

### [Source](docs/source/README.md)
### [Source](docs/sdks/source/README.md)

* [CreateSource](docs/source/README.md#createsource) - Create a new source
* [GetSources](docs/source/README.md#getsources) - Get all sources
* [CreateSource](docs/sdks/source/README.md#createsource) - Create a new source
* [GetSources](docs/sdks/source/README.md#getsources) - Get all sources

### [Sync](docs/sync/README.md)
### [Sync](docs/sdks/sync/README.md)

* [CreateSync](docs/sync/README.md#createsync) - Create a new sync
* [GetSyncs](docs/sync/README.md#getsyncs) - Get all syncs
* [CreateSync](docs/sdks/sync/README.md#createsync) - Create a new sync
* [GetSyncs](docs/sdks/sync/README.md#getsyncs) - Get all syncs
<!-- End SDK Available Operations -->



<!-- Start Dev Containers -->

<!-- End Dev Containers -->



<!-- Start Pagination -->
# Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
return value of `Next` is `nil`, then there are no more pages to be fetched.

Here's an example of one such pagination call:
<!-- End Pagination -->



<!-- Start Go Types -->

<!-- End Go Types -->

<!-- Placeholder for Future Speakeasy SDK Sections -->



### SDK Generated by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)
52 changes: 51 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,54 @@ Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.29.0 (2.26.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v0.6.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.6.0 - .
- [Go v0.6.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.6.0 - .

## 2023-09-22 00:02:30
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.89.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.7.0] .
### Releases
- [Go v0.7.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.7.0 - .

## 2023-09-29 00:02:13
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.8.0] .
### Releases
- [Go v0.8.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.8.0 - .

## 2023-10-07 00:02:09
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.96.1 (2.150.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.0] .
### Releases
- [Go v0.9.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.9.0 - .

## 2023-10-14 00:02:17
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.99.2 (2.155.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.9.1] .
### Releases
- [Go v0.9.1] https://github.com/fabra-io/go-sdk/releases/tag/v0.9.1 - .

## 2023-10-21 00:02:07
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.104.0 (2.169.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v0.10.0] .
### Releases
- [Go v0.10.0] https://github.com/fabra-io/go-sdk/releases/tag/v0.10.0 - .
39 changes: 21 additions & 18 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
<!-- Start SDK Example Usage -->


```go
package main

import(
import (
"context"
gosdk "github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/shared"
"log"
"github.com/fabra-io/go-sdk"
"github.com/fabra-io/go-sdk/pkg/models/operations"
)

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

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, 548814)
if err != nil {
log.Fatal(err)
}

if res.Namespaces != nil {
// handle response
}
s := gosdk.New(
gosdk.WithSecurity(""),
)

var connectionID int64 = 995455

ctx := context.Background()
res, err := s.Connection.GetNamespaces(ctx, connectionID)
if err != nil {
log.Fatal(err)
}

if res.Namespaces != nil {
// handle response
}
}

```
<!-- End SDK Example Usage -->
Loading