Skip to content

zernio-dev/zernio-go

Repository files navigation

Zernio Go SDK

Official Go client library for the Zernio API - Schedule and manage social media posts across multiple platforms.

Installation

go get github.com/zernio-dev/zernio-go

Upgrading from v0.0.x? v0.1.0 switches to a new code generator and is a breaking change. The import path is unchanged, but client construction and method calls differ — see MIGRATION.md.

Quick Start

package main

import (
    "context"
    "fmt"
    "log"

    zernio "github.com/zernio-dev/zernio-go/zernio"
)

func main() {
    // Defaults to the https://zernio.com/api base URL from the spec.
    client := zernio.NewAPIClient(zernio.NewConfiguration())

    // Authenticate with your Bearer API key via the request context.
    ctx := context.WithValue(context.Background(), zernio.ContextAccessToken, "YOUR_API_KEY")

    // List accounts
    accounts, _, err := client.AccountsAPI.ListAccounts(ctx).Execute()
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("Accounts: %+v\n", accounts)
}

SDK Reference

Posts

Method Description
client.PostsAPI.ListPosts(ctx) List posts
client.PostsAPI.BulkUploadPosts(ctx) Bulk upload from CSV
client.PostsAPI.CreatePost(ctx) Create post
client.PostsAPI.GetPost(ctx) Get post
client.PostsAPI.UpdatePost(ctx) Update post
client.PostsAPI.UpdatePostMetadata(ctx) Update post metadata
client.PostsAPI.DeletePost(ctx) Delete post
client.PostsAPI.EditPost(ctx) Edit published post
client.PostsAPI.RetryPost(ctx) Retry failed post
client.PostsAPI.UnpublishPost(ctx) Unpublish post

Accounts

Method Description
client.AccountsAPI.GetAllAccountsHealth(ctx) Check accounts health
client.AccountsAPI.ListAccounts(ctx) List accounts
client.AccountsAPI.GetAccountHealth(ctx) Check account health
client.AccountsAPI.GetFollowerStats(ctx) Get follower stats
client.GMBReviewsAPI.GetGoogleBusinessReviews(ctx) Get reviews
client.LinkedInMentionsAPI.GetLinkedInMentions(ctx) Resolve LinkedIn mention
client.AccountsAPI.GetTikTokCreatorInfo(ctx) Get TikTok creator info
client.AccountsAPI.UpdateAccount(ctx) Update account
client.AccountsAPI.DeleteAccount(ctx) Disconnect account
client.GMBReviewsAPI.DeleteGoogleBusinessReviewReply(ctx) Delete a review reply
client.GMBReviewsAPI.BatchGetGoogleBusinessReviews(ctx) Batch get reviews
client.AccountsAPI.MoveAccountToProfile(ctx) Move account to another profile
client.GMBReviewsAPI.ReplyToGoogleBusinessReview(ctx) Reply to a review

Profiles

Method Description
client.ProfilesAPI.ListProfiles(ctx) List profiles
client.ProfilesAPI.CreateProfile(ctx) Create profile
client.ProfilesAPI.GetProfile(ctx) Get profile
client.ProfilesAPI.UpdateProfile(ctx) Update profile
client.ProfilesAPI.DeleteProfile(ctx) Delete profile

Analytics

Method Description
client.AnalyticsAPI.GetAnalytics(ctx) Get post analytics
client.AnalyticsAPI.GetBestTimeToPost(ctx) Get best times to post
client.AnalyticsAPI.GetContentDecay(ctx) Get content performance decay
client.AnalyticsAPI.GetDailyMetrics(ctx) Get daily aggregated metrics
client.AnalyticsAPI.GetFacebookPageInsights(ctx) Get Facebook Page insights
client.AnalyticsAPI.GetGoogleBusinessPerformance(ctx) Get GBP performance metrics
client.AnalyticsAPI.GetGoogleBusinessSearchKeywords(ctx) Get GBP search keywords
client.AnalyticsAPI.GetInstagramAccountInsights(ctx) Get Instagram insights
client.AnalyticsAPI.GetInstagramDemographics(ctx) Get Instagram demographics
client.AnalyticsAPI.GetInstagramFollowerHistory(ctx) Get Instagram follower history
client.AnalyticsAPI.GetLinkedInAggregateAnalytics(ctx) Get LinkedIn aggregate stats
client.AnalyticsAPI.GetLinkedInOrgAggregateAnalytics(ctx) Get LinkedIn org analytics
client.AnalyticsAPI.GetLinkedInPostAnalytics(ctx) Get LinkedIn post stats
client.AnalyticsAPI.GetLinkedInPostReactions(ctx) Get LinkedIn post reactions
client.AnalyticsAPI.GetPostTimeline(ctx) Get post analytics timeline
client.AnalyticsAPI.GetPostingFrequency(ctx) Get frequency vs engagement
client.AnalyticsAPI.GetTikTokAccountInsights(ctx) Get TikTok account-level insights
client.AnalyticsAPI.GetYouTubeChannelInsights(ctx) Get YouTube channel insights
client.AnalyticsAPI.GetYouTubeDailyViews(ctx) Get YouTube daily views
client.AnalyticsAPI.GetYouTubeDemographics(ctx) Get YouTube demographics
client.AnalyticsAPI.GetYouTubeVideoRetention(ctx) Get YouTube video retention curve
client.AnalyticsAPI.SyncExternalPosts(ctx) Sync an external post

Account Groups

Method Description
client.AccountGroupsAPI.ListAccountGroups(ctx) List groups
client.AccountGroupsAPI.CreateAccountGroup(ctx) Create group
client.AccountGroupsAPI.UpdateAccountGroup(ctx) Update group
client.AccountGroupsAPI.DeleteAccountGroup(ctx) Delete group

Queue

Method Description
client.QueueAPI.ListQueueSlots(ctx) List schedules
client.QueueAPI.CreateQueueSlot(ctx) Create schedule
client.QueueAPI.GetNextQueueSlot(ctx) Get next available slot
client.QueueAPI.UpdateQueueSlot(ctx) Update schedule
client.QueueAPI.DeleteQueueSlot(ctx) Delete schedule
client.QueueAPI.PreviewQueue(ctx) Preview upcoming slots

Webhooks

Method Description
client.WebhooksAPI.CreateWebhookSettings(ctx) Create webhook
client.WebhooksAPI.GetWebhookLogs(ctx) List webhook delivery logs
client.WebhooksAPI.GetWebhookSettings(ctx) List webhooks
client.WebhooksAPI.UpdateWebhookSettings(ctx) Update webhook
client.WebhooksAPI.DeleteWebhookSettings(ctx) Delete webhook
client.WebhooksAPI.TestWebhook(ctx) Send test webhook

API Keys

Method Description
client.APIKeysAPI.ListApiKeys(ctx) List keys
client.APIKeysAPI.CreateApiKey(ctx) Create key
client.APIKeysAPI.DeleteApiKey(ctx) Delete key

Media

Method Description
client.MediaAPI.GetMediaPresignedUrl(ctx) Get upload URL

Users

Method Description
client.UsersAPI.ListUsers(ctx) List users
client.UsersAPI.GetUser(ctx) Get user

Usage

Method Description
client.UsageAPI.GetUsageStats(ctx) Get plan and usage stats
client.UsageAPI.GetXApiPricing(ctx) Get X/Twitter API pricing table

Logs

Method Description
client.LogsAPI.ListLogs(ctx) List activity logs

Connect (OAuth)

Method Description
client.ConnectAPI.ListFacebookPages(ctx) List Facebook pages
client.ConnectAPI.ListGoogleBusinessLocations(ctx) List GBP locations
client.ConnectAPI.ListLinkedInOrganizations(ctx) List LinkedIn orgs
client.ConnectAPI.ListPinterestBoardsForSelection(ctx) List Pinterest boards
client.ConnectAPI.ListSnapchatProfiles(ctx) List Snapchat profiles
client.ConnectAPI.ListWhatsAppPhoneNumbers(ctx) List numbers for selection
client.ConnectAPI.GetConnectUrl(ctx) Get OAuth connect URL
client.ConnectAPI.GetFacebookPages(ctx) List Facebook pages
client.ConnectAPI.GetGmbLocations(ctx) List GBP locations
client.ConnectAPI.GetLinkedInOrganizations(ctx) List LinkedIn orgs
client.ConnectAPI.GetPendingOAuthData(ctx) Get pending OAuth data
client.ConnectAPI.GetPinterestBoards(ctx) List Pinterest boards
client.ConnectAPI.GetRedditFlairs(ctx) List subreddit flairs
client.ConnectAPI.GetRedditSubreddits(ctx) List Reddit subreddits
client.ConnectAPI.GetTelegramConnectStatus(ctx) Generate Telegram code
client.ConnectAPI.GetYoutubePlaylists(ctx) List YouTube playlists
client.ConnectAPI.UpdateFacebookPage(ctx) Update Facebook page
client.ConnectAPI.UpdateGmbLocation(ctx) Update GBP location
client.ConnectAPI.UpdateLinkedInOrganization(ctx) Switch LinkedIn account type
client.ConnectAPI.UpdatePinterestBoards(ctx) Set default Pinterest board
client.ConnectAPI.UpdateRedditSubreddits(ctx) Set default subreddit
client.ConnectAPI.UpdateYoutubeDefaultPlaylist(ctx) Set default YouTube playlist
client.ConnectAPI.CompleteTelegramConnect(ctx) Check Telegram status
client.ConnectAPI.CompleteWhatsAppPhoneSelection(ctx) Complete number selection
client.ConnectAPI.ConfigureTikTokAdsBrandIdentity(ctx) Set TikTok brand identity
client.ConnectAPI.ConnectAds(ctx) Connect ads for a platform
client.ConnectAPI.ConnectBlueskyCredentials(ctx) Connect Bluesky account
client.ConnectAPI.ConnectWhatsAppCredentials(ctx) Connect WhatsApp via credentials
client.ConnectAPI.HandleOAuthCallback(ctx) Complete OAuth callback
client.ConnectAPI.InitiateTelegramConnect(ctx) Connect Telegram directly
client.ConnectAPI.SelectFacebookPage(ctx) Select Facebook page
client.ConnectAPI.SelectGoogleBusinessLocation(ctx) Select GBP location
client.ConnectAPI.SelectLinkedInOrganization(ctx) Select LinkedIn org
client.ConnectAPI.SelectPinterestBoard(ctx) Select Pinterest board
client.ConnectAPI.SelectSnapchatProfile(ctx) Select Snapchat profile

Reddit

Method Description
client.RedditSearchAPI.GetRedditFeed(ctx) Get subreddit feed
client.RedditSearchAPI.SearchReddit(ctx) Search posts

Account Settings

Method Description
client.AccountSettingsAPI.GetInstagramIceBreakers(ctx) Get IG ice breakers
client.AccountSettingsAPI.GetMessengerMenu(ctx) Get FB persistent menu
client.AccountSettingsAPI.GetTelegramCommands(ctx) Get TG bot commands
client.AccountSettingsAPI.DeleteInstagramIceBreakers(ctx) Delete IG ice breakers
client.AccountSettingsAPI.DeleteMessengerMenu(ctx) Delete FB persistent menu
client.AccountSettingsAPI.DeleteTelegramCommands(ctx) Delete TG bot commands
client.AccountSettingsAPI.SetInstagramIceBreakers(ctx) Set IG ice breakers
client.AccountSettingsAPI.SetMessengerMenu(ctx) Set FB persistent menu
client.AccountSettingsAPI.SetTelegramCommands(ctx) Set TG bot commands

Ad Audiences

Method Description
client.AdAudiencesAPI.ListAdAudiences(ctx) List custom audiences
client.AdAudiencesAPI.CreateAdAudience(ctx) Create custom audience
client.AdAudiencesAPI.GetAdAudience(ctx) Get audience details
client.AdAudiencesAPI.DeleteAdAudience(ctx) Delete custom audience
client.AdAudiencesAPI.AddUsersToAdAudience(ctx) Add users to audience

Ad Campaigns

Method Description
client.AdCampaignsAPI.ListAdCampaigns(ctx) List campaigns
client.AdCampaignsAPI.BulkUpdateAdCampaignStatus(ctx) Pause or resume many campaigns
client.AdCampaignsAPI.GetAdTree(ctx) Get campaign tree
client.AdCampaignsAPI.GetAdsTimeline(ctx) Get daily account metrics
client.AdCampaignsAPI.UpdateAdCampaign(ctx) Update a campaign
client.AdCampaignsAPI.UpdateAdCampaignStatus(ctx) Pause or resume a campaign
client.AdCampaignsAPI.UpdateAdSet(ctx) Update an ad set
client.AdCampaignsAPI.UpdateAdSetStatus(ctx) Pause or resume a single ad set
client.AdCampaignsAPI.DeleteAdCampaign(ctx) Delete a campaign
client.AdCampaignsAPI.DuplicateAdCampaign(ctx) Duplicate a campaign

Ads

Method Description
client.AdsAPI.ListAdAccounts(ctx) List ad accounts
client.AdsAPI.ListAdCatalogProductSets(ctx) List a catalog's product sets
client.AdsAPI.ListAdCatalogs(ctx) List Meta product catalogs
client.AdsAPI.ListAds(ctx) List ads
client.AdsAPI.ListAdsBusinessCenters(ctx) List TikTok Business Centers
client.AdsAPI.ListConversionAssociations(ctx) List associated campaigns
client.AdsAPI.ListConversionDestinations(ctx) List conversion destinations
client.AdsAPI.ListFormLeads(ctx) List leads for a single form
client.AdsAPI.ListLeadForms(ctx) List lead forms
client.AdsAPI.ListLeads(ctx) List submitted leads
client.AdsAPI.CreateConversionDestination(ctx) Create a conversion destination
client.AdsAPI.CreateCtwaAd(ctx) Create Click-to-WhatsApp ad
client.AdsAPI.CreateLeadForm(ctx) Create a lead form
client.AdsAPI.CreateStandaloneAd(ctx) Create standalone ad
client.AdsAPI.CreateTestLead(ctx) Create a test lead
client.AdsAPI.GetAd(ctx) Get ad details
client.AdsAPI.GetAdAnalytics(ctx) Get ad analytics
client.AdsAPI.GetAdComments(ctx) List comments on an ad
client.AdsAPI.GetAdTrackingTags(ctx) Get ad tracking tags
client.AdsAPI.GetCampaignAnalytics(ctx) Get campaign analytics
client.AdsAPI.GetConversionDestination(ctx) Get a conversion destination
client.AdsAPI.GetConversionMetrics(ctx) Get attribution metrics
client.AdsAPI.GetConversionsQuality(ctx) Get Event Match Quality
client.AdsAPI.GetLeadForm(ctx) Get a lead form
client.AdsAPI.UpdateAd(ctx) Update ad
client.AdsAPI.UpdateAdTrackingTags(ctx) Set ad tracking tags
client.AdsAPI.UpdateConversionDestination(ctx) Update a conversion destination
client.AdsAPI.DeleteAd(ctx) Cancel an ad
client.AdsAPI.DeleteConversionDestination(ctx) Delete a conversion destination
client.AdsAPI.AddConversionAssociations(ctx) Associate campaigns
client.AdsAPI.AdjustConversions(ctx) Adjust uploaded conversions
client.AdsAPI.ArchiveLeadForm(ctx) Archive a lead form
client.AdsAPI.BoostPost(ctx) Boost post as ad
client.AdsAPI.EstimateAdReach(ctx) Estimate audience reach
client.AdsAPI.RemoveConversionAssociations(ctx) Remove associated campaigns
client.AdsAPI.SearchAdInterests(ctx) Search targeting interests
client.AdsAPI.SearchAdTargeting(ctx) Search targeting options
client.AdsAPI.SendConversions(ctx) Send conversion events

Broadcasts

Method Description
client.BroadcastsAPI.ListBroadcastRecipients(ctx) List broadcast recipients
client.BroadcastsAPI.ListBroadcasts(ctx) List broadcasts
client.BroadcastsAPI.CreateBroadcast(ctx) Create broadcast draft
client.BroadcastsAPI.GetBroadcast(ctx) Get broadcast details
client.BroadcastsAPI.UpdateBroadcast(ctx) Update broadcast
client.BroadcastsAPI.DeleteBroadcast(ctx) Delete broadcast
client.BroadcastsAPI.AddBroadcastRecipients(ctx) Add recipients to a broadcast
client.BroadcastsAPI.CancelBroadcast(ctx) Cancel broadcast
client.BroadcastsAPI.ScheduleBroadcast(ctx) Schedule broadcast for later
client.BroadcastsAPI.SendBroadcast(ctx) Send broadcast now

Comment Automations

Method Description
client.CommentAutomationsAPI.ListCommentAutomationLogs(ctx) List automation logs
client.CommentAutomationsAPI.ListCommentAutomations(ctx) List comment-to-DM automations
client.CommentAutomationsAPI.CreateCommentAutomation(ctx) Create comment-to-DM automation
client.CommentAutomationsAPI.GetCommentAutomation(ctx) Get automation details
client.CommentAutomationsAPI.UpdateCommentAutomation(ctx) Update automation settings
client.CommentAutomationsAPI.DeleteCommentAutomation(ctx) Delete automation

Comments (Inbox)

Method Description
client.CommentsAPI.ListInboxComments(ctx) List commented posts
client.CommentsAPI.GetInboxPostComments(ctx) Get post comments
client.CommentsAPI.DeleteInboxComment(ctx) Delete comment
client.CommentsAPI.HideInboxComment(ctx) Hide comment
client.CommentsAPI.LikeInboxComment(ctx) Like comment
client.CommentsAPI.ReplyToInboxPost(ctx) Reply to comment
client.CommentsAPI.SendPrivateReplyToComment(ctx) Send private reply
client.CommentsAPI.UnhideInboxComment(ctx) Unhide comment
client.CommentsAPI.UnlikeInboxComment(ctx) Unlike comment

Contacts

Method Description
client.ContactsAPI.ListContacts(ctx) List contacts
client.ContactsAPI.BulkCreateContacts(ctx) Bulk create contacts
client.ContactsAPI.CreateContact(ctx) Create contact
client.ContactsAPI.GetContact(ctx) Get contact
client.ContactsAPI.GetContactChannels(ctx) List channels for a contact
client.ContactsAPI.UpdateContact(ctx) Update contact
client.ContactsAPI.DeleteContact(ctx) Delete contact

Custom Fields

Method Description
client.CustomFieldsAPI.ListCustomFields(ctx) List custom field definitions
client.CustomFieldsAPI.CreateCustomField(ctx) Create custom field
client.CustomFieldsAPI.UpdateCustomField(ctx) Update custom field
client.CustomFieldsAPI.DeleteCustomField(ctx) Delete custom field
client.CustomFieldsAPI.ClearContactFieldValue(ctx) Clear custom field value
client.CustomFieldsAPI.SetContactFieldValue(ctx) Set custom field value

Discord

Method Description
client.DiscordAPI.ListDiscordGuildMembers(ctx) List Discord guild members
client.DiscordAPI.ListDiscordGuildRoles(ctx) List Discord guild roles
client.DiscordAPI.ListDiscordPinnedMessages(ctx) List pinned messages
client.DiscordAPI.ListDiscordScheduledEvents(ctx) List Discord scheduled events
client.DiscordAPI.CreateDiscordScheduledEvent(ctx) Create a Discord scheduled event
client.DiscordAPI.GetDiscordChannels(ctx) List Discord guild channels
client.DiscordAPI.GetDiscordScheduledEvent(ctx) Get a Discord scheduled event
client.DiscordAPI.GetDiscordSettings(ctx) Get Discord account settings
client.DiscordAPI.UpdateDiscordScheduledEvent(ctx) Update a Discord scheduled event
client.DiscordAPI.UpdateDiscordSettings(ctx) Update Discord settings
client.DiscordAPI.DeleteDiscordScheduledEvent(ctx) Delete a Discord scheduled event
client.DiscordAPI.AddDiscordMemberRole(ctx) Assign a role to a guild member
client.DiscordAPI.PinDiscordMessage(ctx) Pin a Discord message
client.DiscordAPI.RemoveDiscordMemberRole(ctx) Remove a role from a guild member
client.DiscordAPI.SendDiscordDirectMessage(ctx) Send a Discord Direct Message
client.DiscordAPI.UnpinDiscordMessage(ctx) Unpin a Discord message

GMB Attributes

Method Description
client.GMBAttributesAPI.GetGmbAttributeMetadata(ctx) Get attribute metadata
client.GMBAttributesAPI.GetGoogleBusinessAttributes(ctx) Get attributes
client.GMBAttributesAPI.UpdateGoogleBusinessAttributes(ctx) Update attributes

GMB Food Menus

Method Description
client.GMBFoodMenusAPI.GetGoogleBusinessFoodMenus(ctx) Get food menus
client.GMBFoodMenusAPI.UpdateGoogleBusinessFoodMenus(ctx) Update food menus

GMB Location Details

Method Description
client.GMBLocationDetailsAPI.GetGoogleBusinessLocationDetails(ctx) Get location details
client.GMBLocationDetailsAPI.UpdateGoogleBusinessLocationDetails(ctx) Update location details

GMB Media

Method Description
client.GMBMediaAPI.ListGoogleBusinessMedia(ctx) List media
client.GMBMediaAPI.CreateGoogleBusinessMedia(ctx) Upload photo
client.GMBMediaAPI.DeleteGoogleBusinessMedia(ctx) Delete photo

GMB Place Actions

Method Description
client.GMBPlaceActionsAPI.ListGoogleBusinessPlaceActions(ctx) List action links
client.GMBPlaceActionsAPI.CreateGoogleBusinessPlaceAction(ctx) Create action link
client.GMBPlaceActionsAPI.UpdateGoogleBusinessPlaceAction(ctx) Update action link
client.GMBPlaceActionsAPI.DeleteGoogleBusinessPlaceAction(ctx) Delete action link

GMB Services

Method Description
client.GMBServicesAPI.GetGoogleBusinessServices(ctx) Get services
client.GMBServicesAPI.UpdateGoogleBusinessServices(ctx) Replace services

GMB Verifications

Method Description
client.GMBVerificationsAPI.GetGoogleBusinessVerifications(ctx) Get verification state
client.GMBVerificationsAPI.CompleteGoogleBusinessVerification(ctx) Complete a verification
client.GMBVerificationsAPI.FetchGoogleBusinessVerificationOptions(ctx) Fetch verification options
client.GMBVerificationsAPI.StartGoogleBusinessVerification(ctx) Start a verification

Inbox Analytics

Method Description
client.InboxAnalyticsAPI.ListInboxConversationAnalytics(ctx) List conversation analytics
client.InboxAnalyticsAPI.GetInboxConversationAnalytics(ctx) Get conversation analytics
client.InboxAnalyticsAPI.GetInboxHeatmap(ctx) Get day × hour heatmap
client.InboxAnalyticsAPI.GetInboxResponseTime(ctx) Get inbox response-time stats
client.InboxAnalyticsAPI.GetInboxSourceBreakdown(ctx) Get inbox source breakdown
client.InboxAnalyticsAPI.GetInboxTopAccounts(ctx) Get top accounts by inbox volume
client.InboxAnalyticsAPI.GetInboxVolume(ctx) Get inbox messaging volume

Instagram

Method Description
client.InstagramAPI.ListInstagramStories(ctx) List active Instagram stories
client.InstagramAPI.GetInstagramStoryInsights(ctx) Get Instagram story insights

Mentions

Method Description
client.MentionsAPI.ListInboxMentions(ctx) List mentions

Messages (Inbox)

Method Description
client.MessagesAPI.ListInboxConversations(ctx) List conversations
client.MessagesAPI.CreateInboxConversation(ctx) Create conversation
client.MessagesAPI.GetInboxConversation(ctx) Get conversation
client.MessagesAPI.GetInboxConversationMessages(ctx) List messages
client.MessagesAPI.UpdateInboxConversation(ctx) Update conversation status
client.MessagesAPI.DeleteInboxMessage(ctx) Delete message
client.MessagesAPI.AddMessageReaction(ctx) Add reaction
client.MessagesAPI.EditInboxMessage(ctx) Edit message
client.MessagesAPI.MarkConversationRead(ctx) Mark a conversation as read
client.MessagesAPI.RemoveMessageReaction(ctx) Remove reaction
client.MessagesAPI.SendInboxMessage(ctx) Send message
client.MessagesAPI.SendTypingIndicator(ctx) Send typing indicator
client.MessagesAPI.UploadMediaDirect(ctx) Upload media file

Reviews (Inbox)

Method Description
client.ReviewsAPI.ListInboxReviews(ctx) List reviews
client.ReviewsAPI.DeleteInboxReviewReply(ctx) Delete review reply
client.ReviewsAPI.ReplyToInboxReview(ctx) Reply to review

Sequences

Method Description
client.SequencesAPI.ListSequenceEnrollments(ctx) List enrollments for a sequence
client.SequencesAPI.ListSequences(ctx) List sequences
client.SequencesAPI.CreateSequence(ctx) Create sequence
client.SequencesAPI.GetSequence(ctx) Get sequence with steps
client.SequencesAPI.UpdateSequence(ctx) Update sequence
client.SequencesAPI.DeleteSequence(ctx) Delete sequence
client.SequencesAPI.ActivateSequence(ctx) Activate sequence
client.SequencesAPI.EnrollContacts(ctx) Enroll contacts in a sequence
client.SequencesAPI.PauseSequence(ctx) Pause sequence
client.SequencesAPI.UnenrollContact(ctx) Unenroll contact

Tracking Tags

Method Description
client.TrackingTagsAPI.ListTrackingTagSharedAccounts(ctx) List accounts it is shared with
client.TrackingTagsAPI.ListTrackingTags(ctx) List tracking tags
client.TrackingTagsAPI.CreateTrackingTag(ctx) Create a tracking tag
client.TrackingTagsAPI.GetTrackingTag(ctx) Get a tracking tag
client.TrackingTagsAPI.GetTrackingTagStats(ctx) Get aggregated event stats
client.TrackingTagsAPI.UpdateTrackingTag(ctx) Update a tracking tag
client.TrackingTagsAPI.AddTrackingTagSharedAccount(ctx) Share with an ad account
client.TrackingTagsAPI.RemoveTrackingTagSharedAccount(ctx) Stop sharing with an account

Twitter Engagement

Method Description
client.TwitterEngagementAPI.BookmarkPost(ctx) Bookmark a tweet
client.TwitterEngagementAPI.FollowUser(ctx) Follow a user
client.TwitterEngagementAPI.RemoveBookmark(ctx) Remove bookmark
client.TwitterEngagementAPI.RetweetPost(ctx) Retweet a post
client.TwitterEngagementAPI.UndoRetweet(ctx) Undo retweet
client.TwitterEngagementAPI.UnfollowUser(ctx) Unfollow a user

Validate

Method Description
client.ValidateAPI.ValidateMedia(ctx) Validate media URL
client.ValidateAPI.ValidatePost(ctx) Validate post content
client.ValidateAPI.ValidatePostLength(ctx) Validate character count
client.ValidateAPI.ValidateSubreddit(ctx) Check subreddit existence

WhatsApp

Method Description
client.WhatsAppAPI.ListWhatsAppConversions(ctx) List conversion events
client.WhatsAppAPI.ListWhatsAppGroupChats(ctx) List active groups
client.WhatsAppAPI.ListWhatsAppGroupJoinRequests(ctx) List join requests
client.WhatsAppAPI.CreateWhatsAppDataset(ctx) Provision CTWA dataset
client.WhatsAppAPI.CreateWhatsAppGroupChat(ctx) Create group
client.WhatsAppAPI.CreateWhatsAppGroupInviteLink(ctx) Create invite link
client.WhatsAppAPI.CreateWhatsAppTemplate(ctx) Create template
client.WhatsAppAPI.GetWhatsAppBlockStatus(ctx) Check if a user is blocked
client.WhatsAppAPI.GetWhatsAppBlockedUsers(ctx) List blocked users
client.WhatsAppAPI.GetWhatsAppBusinessProfile(ctx) Get business profile
client.WhatsAppAPI.GetWhatsAppDataset(ctx) Get CTWA conversions dataset
client.WhatsAppAPI.GetWhatsAppDisplayName(ctx) Get display name status
client.WhatsAppAPI.GetWhatsAppGroupChat(ctx) Get group info
client.WhatsAppAPI.GetWhatsAppTemplate(ctx) Get template
client.WhatsAppAPI.GetWhatsAppTemplates(ctx) List templates
client.WhatsAppAPI.GetWhatsappBusinessUsername(ctx) Get business username
client.WhatsAppAPI.GetWhatsappBusinessUsernameSuggestions(ctx) Get username suggestions
client.WhatsAppAPI.UpdateWhatsAppBusinessProfile(ctx) Update business profile
client.WhatsAppAPI.UpdateWhatsAppDisplayName(ctx) Request display name change
client.WhatsAppAPI.UpdateWhatsAppGroupChat(ctx) Update group settings
client.WhatsAppAPI.UpdateWhatsAppTemplate(ctx) Update template
client.WhatsAppAPI.DeleteWhatsAppGroupChat(ctx) Delete group
client.WhatsAppAPI.DeleteWhatsAppTemplate(ctx) Delete template
client.WhatsAppAPI.DeleteWhatsappBusinessUsername(ctx) Delete business username
client.WhatsAppAPI.AddWhatsAppGroupParticipants(ctx) Add participants
client.WhatsAppAPI.ApproveWhatsAppGroupJoinRequests(ctx) Approve join requests
client.WhatsAppAPI.BlockWhatsAppUsers(ctx) Block users
client.WhatsAppAPI.RejectWhatsAppGroupJoinRequests(ctx) Reject join requests
client.WhatsAppAPI.RemoveWhatsAppGroupParticipants(ctx) Remove participants
client.WhatsAppAPI.SendWhatsAppConversion(ctx) Send WhatsApp conversion event
client.WhatsAppAPI.SetWhatsappBusinessUsername(ctx) Set business username
client.WhatsAppAPI.UnblockWhatsAppUsers(ctx) Unblock users
client.WhatsAppAPI.UploadWhatsAppProfilePhoto(ctx) Upload profile picture

WhatsApp Calling

Method Description
client.WhatsAppCallingAPI.ListWhatsAppCalls(ctx) List call history for an account
client.WhatsAppCallingAPI.GetWhatsAppCall(ctx) Get a single call
client.WhatsAppCallingAPI.GetWhatsAppCallEstimate(ctx) Estimate per-minute cost
client.WhatsAppCallingAPI.GetWhatsAppCallPermissions(ctx) Check call permission
client.WhatsAppCallingAPI.GetWhatsAppCallingConfig(ctx) Get calling config for an account
client.WhatsAppCallingAPI.UpdateWhatsAppCalling(ctx) Update calling config
client.WhatsAppCallingAPI.DisableWhatsAppCalling(ctx) Disable calling on a number
client.WhatsAppCallingAPI.EnableWhatsAppCalling(ctx) Enable calling on a number
client.WhatsAppCallingAPI.InitiateWhatsAppCall(ctx) Initiate outbound call

WhatsApp Flows

Method Description
client.WhatsAppFlowsAPI.ListWhatsAppFlowResponses(ctx) List flow responses
client.WhatsAppFlowsAPI.ListWhatsAppFlowVersions(ctx) List flow versions
client.WhatsAppFlowsAPI.ListWhatsAppFlows(ctx) List flows
client.WhatsAppFlowsAPI.CreateWhatsAppFlow(ctx) Create flow
client.WhatsAppFlowsAPI.GetWhatsAppFlow(ctx) Get flow
client.WhatsAppFlowsAPI.GetWhatsAppFlowJson(ctx) Get flow JSON asset
client.WhatsAppFlowsAPI.GetWhatsAppFlowPreview(ctx) Get flow preview URL
client.WhatsAppFlowsAPI.UpdateWhatsAppFlow(ctx) Update flow
client.WhatsAppFlowsAPI.DeleteWhatsAppFlow(ctx) Delete flow
client.WhatsAppFlowsAPI.DeprecateWhatsAppFlow(ctx) Deprecate flow
client.WhatsAppFlowsAPI.PublishWhatsAppFlow(ctx) Publish flow
client.WhatsAppFlowsAPI.SendWhatsAppFlowMessage(ctx) Send flow message
client.WhatsAppFlowsAPI.UploadWhatsAppFlowJson(ctx) Upload flow JSON

WhatsApp Phone Numbers

Method Description
client.WhatsAppPhoneNumbersAPI.ListWhatsAppNumberCountries(ctx) List offerable number countries
client.WhatsAppPhoneNumbersAPI.CreateWhatsAppNumberKycLink(ctx) Create a hosted KYC link
client.WhatsAppPhoneNumbersAPI.GetWhatsAppNumberInfo(ctx) Get number status
client.WhatsAppPhoneNumbersAPI.GetWhatsAppNumberKycForm(ctx) Get KYC form spec
client.WhatsAppPhoneNumbersAPI.GetWhatsAppNumberRemediation(ctx) Get declined requirements
client.WhatsAppPhoneNumbersAPI.GetWhatsAppPhoneNumber(ctx) Get phone number
client.WhatsAppPhoneNumbersAPI.GetWhatsAppPhoneNumbers(ctx) List phone numbers
client.WhatsAppPhoneNumbersAPI.CheckWhatsAppNumberAvailability(ctx) Check country availability
client.WhatsAppPhoneNumbersAPI.PurchaseWhatsAppPhoneNumber(ctx) Purchase phone number
client.WhatsAppPhoneNumbersAPI.ReleaseWhatsAppPhoneNumber(ctx) Release phone number
client.WhatsAppPhoneNumbersAPI.RemediateWhatsAppNumber(ctx) Resubmit a declined number
client.WhatsAppPhoneNumbersAPI.SearchAvailableWhatsAppNumbers(ctx) Search available numbers
client.WhatsAppPhoneNumbersAPI.SubmitWhatsAppNumberKyc(ctx) Submit KYC
client.WhatsAppPhoneNumbersAPI.UploadWhatsAppNumberKycDocument(ctx) Upload a KYC document
client.WhatsAppPhoneNumbersAPI.ValidateWhatsAppNumberKycAddress(ctx) Pre-validate KYC address

WhatsApp Sandbox

Method Description
client.WhatsAppSandboxAPI.ListWhatsAppSandboxSessions(ctx) List your sandbox sessions
client.WhatsAppSandboxAPI.CreateWhatsAppSandboxSession(ctx) Start a sandbox activation
client.WhatsAppSandboxAPI.DeleteWhatsAppSandboxSession(ctx) Revoke a sandbox session

WhatsApp Templates

Method Description
client.WhatsAppTemplatesAPI.GetWhatsAppLibraryTemplate(ctx) Look up a library template

Workflows

Method Description
client.WorkflowsAPI.ListWorkflowExecutionEvents(ctx) Get an execution's timeline
client.WorkflowsAPI.ListWorkflowExecutions(ctx) List workflow runs
client.WorkflowsAPI.ListWorkflowVersions(ctx) List a workflow's version history
client.WorkflowsAPI.ListWorkflows(ctx) List workflows
client.WorkflowsAPI.CreateWorkflow(ctx) Create workflow
client.WorkflowsAPI.GetWorkflow(ctx) Get workflow with graph
client.WorkflowsAPI.GetWorkflowVersion(ctx) Get a specific workflow version
client.WorkflowsAPI.UpdateWorkflow(ctx) Update workflow
client.WorkflowsAPI.DeleteWorkflow(ctx) Delete workflow
client.WorkflowsAPI.ActivateWorkflow(ctx) Activate workflow
client.WorkflowsAPI.DuplicateWorkflow(ctx) Duplicate a workflow
client.WorkflowsAPI.PauseWorkflow(ctx) Pause workflow
client.WorkflowsAPI.RestoreWorkflowVersion(ctx) Restore a workflow version
client.WorkflowsAPI.TriggerWorkflow(ctx) Manually start a workflow run

Invites

Method Description
client.InvitesAPI.CreateInviteToken(ctx) Create invite token

Documentation

License

MIT

About

Zernio API - Official Go SDK

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages