All URIs are relative to https://api.uptrends.com/v4
Method | HTTP request | Description |
---|---|---|
IntegrationCreateAuthorizationForIntegration | Post /Integration/{integrationGuid}/Authorizations | Create authorizations for integration If the wanted authorizations requires other authorizations, these will be added as well |
IntegrationDeleteAuthorizationForIntegration | Delete /Integration/{integrationGuid}/Authorizations/{authorizationGuid} | Delete integration authorization for integration |
IntegrationGetAllIntegrations | Get /Integration | Gets a list of all integrations. |
IntegrationGetAuthorizationsOfIntegration | Get /Integration/{integrationGuid}/Authorizations | Get authorizations of integration |
[]IntegrationAuthorization IntegrationCreateAuthorizationForIntegration(ctx, integrationGuid).IntegrationAuthorization(integrationAuthorization).Execute()
Create authorizations for integration If the wanted authorizations requires other authorizations, these will be added as well
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
integrationGuid := "integrationGuid_example" // string | The integration GUID
integrationAuthorization := *openapiclient.NewIntegrationAuthorization(map[string][]openapiclient.IntegrationAuthorizationType{ ... }) // IntegrationAuthorization | Authorization to add (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationApi.IntegrationCreateAuthorizationForIntegration(context.Background(), integrationGuid).IntegrationAuthorization(integrationAuthorization).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationApi.IntegrationCreateAuthorizationForIntegration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IntegrationCreateAuthorizationForIntegration`: []IntegrationAuthorization
fmt.Fprintf(os.Stdout, "Response from `IntegrationApi.IntegrationCreateAuthorizationForIntegration`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
integrationGuid | string | The integration GUID |
Other parameters are passed through a pointer to a apiIntegrationCreateAuthorizationForIntegrationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
integrationAuthorization | IntegrationAuthorization | Authorization to add |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IntegrationDeleteAuthorizationForIntegration(ctx, integrationGuid, authorizationGuid).Execute()
Delete integration authorization for integration
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
integrationGuid := "integrationGuid_example" // string | The integration GUID
authorizationGuid := "authorizationGuid_example" // string | The authorization GUID that needs to be deleted
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationApi.IntegrationDeleteAuthorizationForIntegration(context.Background(), integrationGuid, authorizationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationApi.IntegrationDeleteAuthorizationForIntegration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
integrationGuid | string | The integration GUID | |
authorizationGuid | string | The authorization GUID that needs to be deleted |
Other parameters are passed through a pointer to a apiIntegrationDeleteAuthorizationForIntegrationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Integration IntegrationGetAllIntegrations(ctx).Execute()
Gets a list of all integrations.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationApi.IntegrationGetAllIntegrations(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationApi.IntegrationGetAllIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IntegrationGetAllIntegrations`: []Integration
fmt.Fprintf(os.Stdout, "Response from `IntegrationApi.IntegrationGetAllIntegrations`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiIntegrationGetAllIntegrationsRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]IntegrationAuthorization IntegrationGetAuthorizationsOfIntegration(ctx, integrationGuid).Execute()
Get authorizations of integration
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
integrationGuid := "integrationGuid_example" // string | The intregration GUID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationApi.IntegrationGetAuthorizationsOfIntegration(context.Background(), integrationGuid).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationApi.IntegrationGetAuthorizationsOfIntegration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `IntegrationGetAuthorizationsOfIntegration`: []IntegrationAuthorization
fmt.Fprintf(os.Stdout, "Response from `IntegrationApi.IntegrationGetAuthorizationsOfIntegration`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
integrationGuid | string | The intregration GUID |
Other parameters are passed through a pointer to a apiIntegrationGetAuthorizationsOfIntegrationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]