Skip to content

magicbell/magicbell-go-project-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicbellProjectClient Go SDK 0.1.1

Welcome to the MagicbellProjectClient SDK documentation. This guide will help you get started with integrating and using the MagicbellProjectClient SDK in your project.

This SDK was generated by liblab

Versions

  • API version: 2.0.0
  • SDK version: 0.1.1

About the API

OpenAPI 3.1.0 Specification for MagicBell API.

Table of Contents

Setup & Configuration

Supported Language Versions

This SDK is compatible with the following versions: Go >= 1.19.0

Authentication

Access Token Authentication

The magicbell-project-client API uses an Access Token for authentication.

This token must be provided to authenticate your requests to the API.

Setting the Access Token

When you initialize the SDK, you can set the access token as follows:

import (
    "github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
    "github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
  )

config := magicbellprojectclientconfig.NewConfig()
config.SetAccessToken("YOUR-TOKEN")

sdk := magicbellprojectclient.NewMagicbellProjectClient(config)

If you need to set or update the access token after initializing the SDK, you can use:

import (
    "github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclient"
    "github.com/magicbell/magicbell-go-project-client/pkg/magicbellprojectclientconfig"
  )

config := magicbellprojectclientconfig.NewConfig()

sdk := magicbellprojectclient.NewMagicbellProjectClient(config)
sdk.SetAccessToken("YOUR-TOKEN")

Services

The SDK provides various services to interact with the API.

Below is a list of all available services with links to their detailed documentation:
Name
BroadcastsService
ChannelsService
EventsService
IntegrationsService
JwtService
NotificationsService
UsersService

Response Wrappers

All services use response wrappers to provide a consistent interface to return the responses from the API.

The response wrapper itself is a generic struct that contains the response data and metadata.

Below are the response wrappers used in the SDK:

MagicbellProjectClientResponse[T]

This response wrapper is used to return the response data from the API. It contains the following fields:

Name Type Description
Data T The body of the API response
Metadata MagicbellProjectClientResponseMetadata Status code and headers returned by the API

MagicbellProjectClientError

This response wrapper is used to return an error. It contains the following fields:

Name Type Description
Err error The error that occurred
Body T The body of the API response
Metadata MagicbellProjectClientResponseMetadata Status code and headers returned by the API

MagicbellProjectClientResponseMetadata

This struct is shared by both response wrappers and contains the following fields:

Name Type Description
Headers map[string]string A map containing the headers returned by the API
StatusCode int The status code returned by the API

Models

The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.

Below is a list of all available models with links to their detailed documentation:
Name Description
BroadcastCollection
Broadcast
CategoryDeliveryConfig
InboxTokenResponseCollection
InboxTokenResponse
DiscardResult
ApnsTokenCollection
ApnsToken
ExpoTokenCollection
ExpoToken
FcmTokenCollection
FcmToken
SlackTokenCollection
SlackToken
TeamsTokenCollection
TeamsToken
WebPushTokenCollection
WebPushToken
EventCollection
Event
IntegrationConfigCollection
ApnsConfigCollection
ApnsConfigPayload
AwssnsConfigCollection
AwssnsConfigPayload
EventSourceConfigCollection
EventSourceConfigPayload
ExpoConfigCollection
ExpoConfigPayload
FcmConfigCollection
FcmConfigPayload
GithubConfigCollection
GithubConfigPayload
InboxConfigCollection
InboxConfigPayload
MailgunConfigCollection
MailgunConfigPayload
PingConfigCollection
PingConfigPayload
SendgridConfigCollection
SendgridConfigPayload
SesConfigCollection
SesConfigPayload
SlackConfigCollection
SlackConfigPayload
StripeConfigCollection
StripeConfigPayload
TemplatesConfigCollection
TwilioConfigCollection
TwilioConfigPayload
WebpushConfigCollection
WebpushConfigPayload
AccessTokenCollection
CreateProjectTokenRequest
CreateTokenResponse
DiscardTokenResponse
CreateUserTokenRequest
DeliveryPlanCollection
UserCollection
User
Links
IntegrationConfig
ApnsConfig
AwssnsConfig
EventSourceConfig
ExpoConfig
FcmConfig
GithubConfig
InboxConfig
MailgunConfig
PingConfig
SendgridConfig
SesConfig
SlackConfig
StripeConfig
TemplatesConfig
TwilioConfig
WebpushConfig
AccessToken
DeliveryPlan

License

This SDK is licensed under the MIT License.

See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages