IntegrationsService
A list of all methods in the IntegrationsService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
ListIntegrations | Lists all available and configured integrations for the project. Returns a summary of each integration including its type, status, and basic configuration information. |
GetApnsIntegration | Retrieves the current apns integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveApnsIntegration | Creates or updates a apns integration for the project. Only administrators can configure integrations. |
DeleteApnsIntegration | Removes a apns integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteApnsIntegrationById | Removes a specific apns integration instance by ID from the project. |
GetAwssnsIntegration | Retrieves the current awssns integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveAwssnsIntegration | Creates or updates a awssns integration for the project. Only administrators can configure integrations. |
DeleteAwssnsIntegration | Removes a awssns integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteAwssnsIntegrationById | Removes a specific awssns integration instance by ID from the project. |
GetExpoIntegration | Retrieves the current expo integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveExpoIntegration | Creates or updates a expo integration for the project. Only administrators can configure integrations. |
DeleteExpoIntegration | Removes a expo integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteExpoIntegrationById | Removes a specific expo integration instance by ID from the project. |
GetFcmIntegration | Retrieves the current fcm integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveFcmIntegration | Creates or updates a fcm integration for the project. Only administrators can configure integrations. |
DeleteFcmIntegration | Removes a fcm integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteFcmIntegrationById | Removes a specific fcm integration instance by ID from the project. |
GetGithubIntegration | Retrieves the current github integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveGithubIntegration | Creates or updates a github integration for the project. Only administrators can configure integrations. |
DeleteGithubIntegration | Removes a github integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteGithubIntegrationById | Removes a specific github integration instance by ID from the project. |
GetInboxIntegration | Retrieves the current inbox integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveInboxIntegration | Creates or updates a inbox integration for the project. Only administrators can configure integrations. |
DeleteInboxIntegration | Removes a inbox integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteInboxIntegrationById | Removes a specific inbox integration instance by ID from the project. |
GetMailgunIntegration | Retrieves the current mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveMailgunIntegration | Creates or updates a mailgun integration for the project. Only administrators can configure integrations. |
DeleteMailgunIntegration | Removes a mailgun integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteMailgunIntegrationById | Removes a specific mailgun integration instance by ID from the project. |
GetPingEmailIntegration | Retrieves the current ping_email integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SavePingEmailIntegration | Creates or updates a ping_email integration for the project. Only administrators can configure integrations. |
DeletePingEmailIntegration | Removes a ping_email integration configuration from the project. This will disable the integration's functionality within the project. |
DeletePingEmailIntegrationById | Removes a specific ping_email integration instance by ID from the project. |
GetSendgridIntegration | Retrieves the current sendgrid integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveSendgridIntegration | Creates or updates a sendgrid integration for the project. Only administrators can configure integrations. |
DeleteSendgridIntegration | Removes a sendgrid integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteSendgridIntegrationById | Removes a specific sendgrid integration instance by ID from the project. |
GetSesIntegration | Retrieves the current ses integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveSesIntegration | Creates or updates a ses integration for the project. Only administrators can configure integrations. |
DeleteSesIntegration | Removes a ses integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteSesIntegrationById | Removes a specific ses integration instance by ID from the project. |
GetSlackIntegration | Retrieves the current slack integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveSlackIntegration | Creates or updates a slack integration for the project. Only administrators can configure integrations. |
DeleteSlackIntegration | Removes a slack integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteSlackIntegrationById | Removes a specific slack integration instance by ID from the project. |
GetStripeIntegration | Retrieves the current stripe integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveStripeIntegration | Creates or updates a stripe integration for the project. Only administrators can configure integrations. |
DeleteStripeIntegration | Removes a stripe integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteStripeIntegrationById | Removes a specific stripe integration instance by ID from the project. |
GetTemplatesIntegration | Retrieves the current templates integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveTemplatesIntegration | Creates or updates a templates integration for the project. Only administrators can configure integrations. |
DeleteTemplatesIntegration | Removes a templates integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteTemplatesIntegrationById | Removes a specific templates integration instance by ID from the project. |
GetTwilioIntegration | Retrieves the current twilio integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveTwilioIntegration | Creates or updates a twilio integration for the project. Only administrators can configure integrations. |
DeleteTwilioIntegration | Removes a twilio integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteTwilioIntegrationById | Removes a specific twilio integration instance by ID from the project. |
GetWebPushIntegration | Retrieves the current web_push integration configurations for a specific integration type in the project. Returns configuration details and status information. |
SaveWebPushIntegration | Creates or updates a web_push integration for the project. Only administrators can configure integrations. |
DeleteWebPushIntegration | Removes a web_push integration configuration from the project. This will disable the integration's functionality within the project. |
DeleteWebPushIntegrationById | Removes a specific web_push integration instance by ID from the project. |
ListIntegrations
Lists all available and configured integrations for the project. Returns a summary of each integration including its type, status, and basic configuration information.
- HTTP Method:
GET
- Endpoint:
/integrations
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
params | ListIntegrationsRequestParams | ✅ | Additional request parameters |
Return Type
ArrayOfIntegrationObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
params := integrations.ListIntegrationsRequestParams{}
response, err := client.Integrations.ListIntegrations(context.Background(), params)
if err != nil {
panic(err)
}
fmt.Println(response)
GetApnsIntegration
Retrieves the current apns integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/apns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfApnsConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetApnsIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveApnsIntegration
Creates or updates a apns integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/apns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
apnsConfig | ApnsConfig | ✅ |
Return Type
ApnsConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
badge := integrations.BADGE_UNREAD
payloadVersion := integrations.PAYLOAD_VERSION_1
request := integrations.ApnsConfig{}
request.SetAppId("AppId")
request.SetBadge(badge)
request.SetCertificate("Certificate")
request.SetKeyId("KeyId")
request.SetPayloadVersion(payloadVersion)
request.SetTeamId("TeamId")
response, err := client.Integrations.SaveApnsIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteApnsIntegration
Removes a apns integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/apns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteApnsIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteApnsIntegrationById
Removes a specific apns integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/apns/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteApnsIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetAwssnsIntegration
Retrieves the current awssns integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/awssns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfAwssnsConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetAwssnsIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveAwssnsIntegration
Creates or updates a awssns integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/awssns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
awssnsConfig | AwssnsConfig | ✅ |
Return Type
AwssnsConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.AwssnsConfig{}
request.SetWebhookSigningSecret("WebhookSigningSecret")
response, err := client.Integrations.SaveAwssnsIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteAwssnsIntegration
Removes a awssns integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/awssns
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteAwssnsIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteAwssnsIntegrationById
Removes a specific awssns integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/awssns/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteAwssnsIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetExpoIntegration
Retrieves the current expo integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/expo
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfExpoConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetExpoIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveExpoIntegration
Creates or updates a expo integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/expo
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
expoConfig | ExpoConfig | ✅ |
Return Type
ExpoConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.ExpoConfig{}
request.SetAccessToken("AccessToken")
response, err := client.Integrations.SaveExpoIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteExpoIntegration
Removes a expo integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/expo
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteExpoIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteExpoIntegrationById
Removes a specific expo integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/expo/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteExpoIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetFcmIntegration
Retrieves the current fcm integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/fcm
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfFcmConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetFcmIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveFcmIntegration
Creates or updates a fcm integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/fcm
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
fcmConfig | FcmConfig | ✅ |
Return Type
FcmConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
type_ := integrations.TYPE_SERVICE_ACCOUNT
request := integrations.FcmConfig{}
request.SetAuthProviderX509CertUrl("AuthProviderX509CertUrl")
request.SetAuthUri("AuthUri")
request.SetClientEmail("ClientEmail")
request.SetClientId("ClientId")
request.SetClientX509CertUrl("ClientX509CertUrl")
request.SetPrivateKey("PrivateKey")
request.SetPrivateKeyId("PrivateKeyId")
request.SetProjectId("ProjectId")
request.SetTokenUri("TokenUri")
request.SetType_(type_)
request.SetUniverseDomain("UniverseDomain")
response, err := client.Integrations.SaveFcmIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteFcmIntegration
Removes a fcm integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/fcm
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteFcmIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteFcmIntegrationById
Removes a specific fcm integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/fcm/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteFcmIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetGithubIntegration
Retrieves the current github integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/github
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfGithubConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetGithubIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveGithubIntegration
Creates or updates a github integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/github
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
githubConfig | GithubConfig | ✅ |
Return Type
GithubConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.GithubConfig{}
request.SetWebhookSigningSecret("WebhookSigningSecret")
response, err := client.Integrations.SaveGithubIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteGithubIntegration
Removes a github integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/github
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteGithubIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteGithubIntegrationById
Removes a specific github integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/github/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteGithubIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetInboxIntegration
Retrieves the current inbox integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/inbox
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfInboxConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetInboxIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveInboxIntegration
Creates or updates a inbox integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/inbox
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
inboxConfig | InboxConfig | ✅ |
Return Type
InboxConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
images := integrations.Images{}
images.SetEmptyInboxUrl("EmptyInboxUrl")
banner := integrations.Banner{}
banner.SetBackgroundColor("BackgroundColor")
banner.SetBackgroundOpacity(float64(123))
banner.SetFontSize("FontSize")
banner.SetTextColor("TextColor")
dialog := integrations.Dialog{}
dialog.SetAccentColor("AccentColor")
dialog.SetBackgroundColor("BackgroundColor")
dialog.SetTextColor("TextColor")
footer := integrations.Footer{}
footer.SetBackgroundColor("BackgroundColor")
footer.SetBorderRadius("BorderRadius")
footer.SetFontSize("FontSize")
footer.SetTextColor("TextColor")
header := integrations.Header{}
header.SetBackgroundColor("BackgroundColor")
header.SetBorderRadius("BorderRadius")
header.SetFontFamily("FontFamily")
header.SetFontSize("FontSize")
header.SetTextColor("TextColor")
icon := integrations.Icon{}
icon.SetBorderColor("BorderColor")
icon.SetWidth("Width")
defaultHover := integrations.DefaultHover{}
defaultHover.SetBackgroundColor("BackgroundColor")
defaultState := integrations.DefaultState{}
defaultState.SetColor("Color")
default_ := integrations.Default_{}
default_.SetBackgroundColor("BackgroundColor")
default_.SetBorderRadius("BorderRadius")
default_.SetFontFamily("FontFamily")
default_.SetFontSize("FontSize")
default_.SetHover(defaultHover)
default_.SetMargin("Margin")
default_.SetState(defaultState)
default_.SetTextColor("TextColor")
unreadHover := integrations.UnreadHover{}
unreadHover.SetBackgroundColor("BackgroundColor")
unreadState := integrations.UnreadState{}
unreadState.SetColor("Color")
unread := integrations.Unread{}
unread.SetBackgroundColor("BackgroundColor")
unread.SetHover(unreadHover)
unread.SetState(unreadState)
unread.SetTextColor("TextColor")
unseenHover := integrations.UnseenHover{}
unseenHover.SetBackgroundColor("BackgroundColor")
unseenState := integrations.UnseenState{}
unseenState.SetColor("Color")
unseen := integrations.Unseen{}
unseen.SetBackgroundColor("BackgroundColor")
unseen.SetHover(unseenHover)
unseen.SetState(unseenState)
unseen.SetTextColor("TextColor")
notification := integrations.Notification{}
notification.SetDefault_(default_)
notification.SetUnread(unread)
notification.SetUnseen(unseen)
unseenBadge := integrations.UnseenBadge{}
unseenBadge.SetBackgroundColor("BackgroundColor")
theme := integrations.Theme{}
theme.SetBanner(banner)
theme.SetDialog(dialog)
theme.SetFooter(footer)
theme.SetHeader(header)
theme.SetIcon(icon)
theme.SetNotification(notification)
theme.SetUnseenBadge(unseenBadge)
request := integrations.InboxConfig{}
request.SetImages(images)
request.SetLocale("Locale")
request.SetTheme(theme)
response, err := client.Integrations.SaveInboxIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteInboxIntegration
Removes a inbox integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/inbox
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteInboxIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteInboxIntegrationById
Removes a specific inbox integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/inbox/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteInboxIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetMailgunIntegration
Retrieves the current mailgun integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/mailgun
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfMailgunConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetMailgunIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveMailgunIntegration
Creates or updates a mailgun integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/mailgun
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
mailgunConfig | MailgunConfig | ✅ |
Return Type
MailgunConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
mailgunConfigRegion := integrations.MAILGUN_CONFIG_REGION_US
request := integrations.MailgunConfig{}
request.SetApiKey("ApiKey")
request.SetDomain("Domain")
request.SetRegion(mailgunConfigRegion)
response, err := client.Integrations.SaveMailgunIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteMailgunIntegration
Removes a mailgun integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/mailgun
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteMailgunIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteMailgunIntegrationById
Removes a specific mailgun integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/mailgun/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteMailgunIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetPingEmailIntegration
Retrieves the current ping_email integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/ping_email
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfPingConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetPingEmailIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SavePingEmailIntegration
Creates or updates a ping_email integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/ping_email
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
pingConfig | PingConfig | ✅ |
Return Type
PingConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.PingConfig{}
request.SetUrl("Url")
response, err := client.Integrations.SavePingEmailIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeletePingEmailIntegration
Removes a ping_email integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/ping_email
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeletePingEmailIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeletePingEmailIntegrationById
Removes a specific ping_email integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/ping_email/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeletePingEmailIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetSendgridIntegration
Retrieves the current sendgrid integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/sendgrid
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfSendgridConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetSendgridIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveSendgridIntegration
Creates or updates a sendgrid integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/sendgrid
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
sendgridConfig | SendgridConfig | ✅ |
Return Type
SendgridConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
sendgridConfigFrom := integrations.SendgridConfigFrom{}
sendgridConfigFrom.SetEmail("Email")
sendgridConfigFrom.SetName("Name")
replyTo := integrations.ReplyTo{}
replyTo.SetEmail("Email")
replyTo.SetName("Name")
request := integrations.SendgridConfig{}
request.SetApiKey("ApiKey")
request.SetFrom(sendgridConfigFrom)
request.SetReplyTo(replyTo)
response, err := client.Integrations.SaveSendgridIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSendgridIntegration
Removes a sendgrid integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/sendgrid
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSendgridIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSendgridIntegrationById
Removes a specific sendgrid integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/sendgrid/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSendgridIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetSesIntegration
Retrieves the current ses integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/ses
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfSesConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetSesIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveSesIntegration
Creates or updates a ses integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/ses
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
sesConfig | SesConfig | ✅ |
Return Type
SesConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
endpoint := integrations.Endpoint{}
sesConfigFrom := integrations.SesConfigFrom{}
sesConfigFrom.SetEmail("Email")
sesConfigFrom.SetName("Name")
request := integrations.SesConfig{}
request.SetEndpoint(endpoint)
request.SetFrom(sesConfigFrom)
request.SetKeyId("KeyId")
request.SetRegion("Region")
request.SetSecretKey("SecretKey")
response, err := client.Integrations.SaveSesIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSesIntegration
Removes a ses integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/ses
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSesIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSesIntegrationById
Removes a specific ses integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/ses/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSesIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetSlackIntegration
Retrieves the current slack integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/slack
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfSlackConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetSlackIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveSlackIntegration
Creates or updates a slack integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/slack
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
slackConfig | SlackConfig | ✅ |
Return Type
SlackConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.SlackConfig{}
request.SetAppId("AppId")
request.SetClientId("ClientId")
request.SetClientSecret("ClientSecret")
request.SetSigningSecret("SigningSecret")
response, err := client.Integrations.SaveSlackIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSlackIntegration
Removes a slack integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/slack
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSlackIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteSlackIntegrationById
Removes a specific slack integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/slack/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteSlackIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetStripeIntegration
Retrieves the current stripe integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/stripe
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfStripeConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetStripeIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveStripeIntegration
Creates or updates a stripe integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/stripe
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
stripeConfig | StripeConfig | ✅ |
Return Type
StripeConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.StripeConfig{}
request.SetWebhookSigningSecret("WebhookSigningSecret")
response, err := client.Integrations.SaveStripeIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteStripeIntegration
Removes a stripe integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/stripe
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteStripeIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteStripeIntegrationById
Removes a specific stripe integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/stripe/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteStripeIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetTemplatesIntegration
Retrieves the current templates integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/templates
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfTemplatesConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetTemplatesIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveTemplatesIntegration
Creates or updates a templates integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/templates
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
body | []byte | ✅ |
Return Type
[]byte
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.SaveTemplatesIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteTemplatesIntegration
Removes a templates integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/templates
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteTemplatesIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteTemplatesIntegrationById
Removes a specific templates integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/templates/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteTemplatesIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetTwilioIntegration
Retrieves the current twilio integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/twilio
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfTwilioConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetTwilioIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveTwilioIntegration
Creates or updates a twilio integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/twilio
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
twilioConfig | TwilioConfig | ✅ |
Return Type
TwilioConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
twilioConfigRegion := integrations.TWILIO_CONFIG_REGION_US1
request := integrations.TwilioConfig{}
request.SetAccountSid("AccountSid")
request.SetApiKey("ApiKey")
request.SetApiSecret("ApiSecret")
request.SetFrom("From")
request.SetRegion(twilioConfigRegion)
response, err := client.Integrations.SaveTwilioIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteTwilioIntegration
Removes a twilio integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/twilio
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteTwilioIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteTwilioIntegrationById
Removes a specific twilio integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/twilio/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteTwilioIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)
GetWebPushIntegration
Retrieves the current web_push integration configurations for a specific integration type in the project. Returns configuration details and status information.
- HTTP Method:
GET
- Endpoint:
/integrations/web_push
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
ArrayOfWebpushConfigObjects
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.GetWebPushIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
SaveWebPushIntegration
Creates or updates a web_push integration for the project. Only administrators can configure integrations.
- HTTP Method:
PUT
- Endpoint:
/integrations/web_push
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
webpushConfig | WebpushConfig | ✅ |
Return Type
WebpushConfig
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
"github.com/magicbell/magicbell-go-project-client/pkg/integrations"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
request := integrations.WebpushConfig{}
request.SetPrivateKey("PrivateKey")
request.SetPublicKey("PublicKey")
response, err := client.Integrations.SaveWebPushIntegration(context.Background(), request)
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteWebPushIntegration
Removes a web_push integration configuration from the project. This will disable the integration's functionality within the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/web_push
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteWebPushIntegration(context.Background())
if err != nil {
panic(err)
}
fmt.Println(response)
DeleteWebPushIntegrationById
Removes a specific web_push integration instance by ID from the project.
- HTTP Method:
DELETE
- Endpoint:
/integrations/web_push/{id}
Parameters
Name | Type | Required | Description |
---|---|---|---|
ctx | Context | ✅ | Default go language context |
id | string | ✅ |
Return Type
any
Example Usage Code Snippet
import (
"fmt"
"encoding/json"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
"github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
)
config := magicbellprojectclientconfig.NewConfig()
client := magicbellprojectclient.NewMagicbellProjectClient(config)
response, err := client.Integrations.DeleteWebPushIntegrationById(context.Background(), "id")
if err != nil {
panic(err)
}
fmt.Println(response)