All URIs are relative to https://api.segmentapis.com
Method | HTTP request | Description |
---|---|---|
GetDestinationMetadata | Get /catalog/destinations/{destinationMetadataId} | Get Destination Metadata |
GetDestinationsCatalog | Get /catalog/destinations | Get Destinations Catalog |
GetSourceMetadata | Get /catalog/sources/{sourceMetadataId} | Get Source Metadata |
GetSourcesCatalog | Get /catalog/sources | Get Sources Catalog |
GetWarehouseMetadata | Get /catalog/warehouses/{warehouseMetadataId} | Get Warehouse Metadata |
GetWarehousesCatalog | Get /catalog/warehouses | Get Warehouses Catalog |
GetDestinationMetadata200Response GetDestinationMetadata(ctx, destinationMetadataId).Execute()
Get Destination Metadata
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
destinationMetadataId := "54521fd525e721e32a72ee91" // string |
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetDestinationMetadata(ctx, destinationMetadataId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetDestinationMetadata``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetDestinationMetadata`: GetDestinationMetadata200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetDestinationMetadata`: %v\n", resp.GetData())
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
destinationMetadataId | string |
Other parameters are passed through a pointer to a apiGetDestinationMetadataRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetDestinationMetadata200Response
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetDestinationsCatalog200Response GetDestinationsCatalog(ctx).Pagination(pagination).Execute()
Get Destinations Catalog
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
pagination := *api.NewPaginationInput(10) // PaginationInput | Required pagination parameters used to filter the Destinations catalog. This parameter exists in v1. (optional)
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetDestinationsCatalog(ctx).Pagination(pagination).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetDestinationsCatalog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetDestinationsCatalog`: GetDestinationsCatalog200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetDestinationsCatalog`: %v\n", resp.GetData())
}
Other parameters are passed through a pointer to a apiGetDestinationsCatalogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
pagination | PaginationInput | Required pagination parameters used to filter the Destinations catalog. This parameter exists in v1. |
GetDestinationsCatalog200Response
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetSourceMetadata200Response GetSourceMetadata(ctx, sourceMetadataId).Execute()
Get Source Metadata
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
sourceMetadataId := "1bow82lmk" // string |
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetSourceMetadata(ctx, sourceMetadataId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetSourceMetadata``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetSourceMetadata`: GetSourceMetadata200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetSourceMetadata`: %v\n", resp.GetData())
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
sourceMetadataId | string |
Other parameters are passed through a pointer to a apiGetSourceMetadataRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetSourcesCatalog200Response GetSourcesCatalog(ctx).Pagination(pagination).Execute()
Get Sources Catalog
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
pagination := *api.NewPaginationInput(10) // PaginationInput | Defines the pagination parameters. This parameter exists in v1. (optional)
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetSourcesCatalog(ctx).Pagination(pagination).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetSourcesCatalog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetSourcesCatalog`: GetSourcesCatalog200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetSourcesCatalog`: %v\n", resp.GetData())
}
Other parameters are passed through a pointer to a apiGetSourcesCatalogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
pagination | PaginationInput | Defines the pagination parameters. This parameter exists in v1. |
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWarehouseMetadata200Response GetWarehouseMetadata(ctx, warehouseMetadataId).Execute()
Get Warehouse Metadata
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
warehouseMetadataId := "55d3d3aea3c" // string |
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetWarehouseMetadata(ctx, warehouseMetadataId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetWarehouseMetadata``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetWarehouseMetadata`: GetWarehouseMetadata200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetWarehouseMetadata`: %v\n", resp.GetData())
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
warehouseMetadataId | string |
Other parameters are passed through a pointer to a apiGetWarehouseMetadataRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
GetWarehouseMetadata200Response
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWarehousesCatalog200Response GetWarehousesCatalog(ctx).Pagination(pagination).Execute()
Get Warehouses Catalog
package main
import (
"context"
"fmt"
"os"
api "github.com/segmentio/public-api-sdk-go"
)
func main() {
pagination := *api.NewPaginationInput(10) // PaginationInput | Optional pagination params used to filter the Warehouses catalog. This parameter exists in v1. (optional)
configuration := api.NewConfiguration()
apiClient := api.NewAPIClient(configuration)
token := "<BEARER_TOKEN>"
ctx := context.WithValue(context.Background(), api.ContextAccessToken, token)
resp, r, err := apiClient.CatalogAPI.GetWarehousesCatalog(ctx).Pagination(pagination).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CatalogAPI.GetWarehousesCatalog``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
responseErrors := api.UnwrapFullErrors(err)
if responseErrors != nil {
for _, responseError := range responseErrors.Errors {
fmt.Fprintf(os.Stderr, "Full error message: %v\n", *responseError.Message)
}
}
}
// response from `GetWarehousesCatalog`: GetWarehousesCatalog200Response
fmt.Fprintf(os.Stdout, "Response from `CatalogAPI.GetWarehousesCatalog`: %v\n", resp.GetData())
}
Other parameters are passed through a pointer to a apiGetWarehousesCatalogRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
pagination | PaginationInput | Optional pagination params used to filter the Warehouses catalog. This parameter exists in v1. |
GetWarehousesCatalog200Response
- Content-Type: Not defined
- Accept: application/vnd.segment.v1+json, application/json, application/vnd.segment.v1beta+json, application/vnd.segment.v1alpha+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]