zernio-go

module
v0.0.297 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT

README

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

Quick Start

package main

import (
    "context"
    "fmt"
    "log"

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

func main() {
    client, err := zernio.NewClientWithResponses("https://api.zernio.com",
        zernio.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
            req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
            return nil
        }),
    )
    if err != nil {
        log.Fatal(err)
    }

    // List accounts
    resp, err := client.ListAccountsWithResponse(context.Background(), nil)
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("Accounts: %+v\n", resp.JSON200)
}

SDK Reference

Posts
Method Description
client.ListPostsWithResponse() List posts
client.BulkUploadPostsWithResponse() Bulk upload from CSV
client.CreatePostWithResponse() Create post
client.GetPostWithResponse() Get post
client.UpdatePostWithResponse() Update post
client.UpdatePostMetadataWithResponse() Update post metadata
client.DeletePostWithResponse() Delete post
client.EditPostWithResponse() Edit published post
client.RetryPostWithResponse() Retry failed post
client.UnpublishPostWithResponse() Unpublish post
Accounts
Method Description
client.GetAllAccountsHealthWithResponse() Check accounts health
client.ListAccountsWithResponse() List accounts
client.GetAccountHealthWithResponse() Check account health
client.GetFollowerStatsWithResponse() Get follower stats
client.GetGoogleBusinessReviewsWithResponse() Get reviews
client.GetLinkedInMentionsWithResponse() Resolve LinkedIn mention
client.GetTikTokCreatorInfoWithResponse() Get TikTok creator info
client.UpdateAccountWithResponse() Update account
client.DeleteAccountWithResponse() Disconnect account
client.DeleteGoogleBusinessReviewReplyWithResponse() Delete a review reply
client.BatchGetGoogleBusinessReviewsWithResponse() Batch get reviews
client.MoveAccountToProfileWithResponse() Move account to a different profile
client.ReplyToGoogleBusinessReviewWithResponse() Reply to a review
Profiles
Method Description
client.ListProfilesWithResponse() List profiles
client.CreateProfileWithResponse() Create profile
client.GetProfileWithResponse() Get profile
client.UpdateProfileWithResponse() Update profile
client.DeleteProfileWithResponse() Delete profile
Analytics
Method Description
client.GetAnalyticsWithResponse() Get post analytics
client.GetBestTimeToPostWithResponse() Get best times to post
client.GetContentDecayWithResponse() Get content performance decay
client.GetDailyMetricsWithResponse() Get daily aggregated metrics
client.GetFacebookPageInsightsWithResponse() Get Facebook Page insights
client.GetGoogleBusinessPerformanceWithResponse() Get GBP performance metrics
client.GetGoogleBusinessSearchKeywordsWithResponse() Get GBP search keywords
client.GetInstagramAccountInsightsWithResponse() Get Instagram insights
client.GetInstagramDemographicsWithResponse() Get Instagram demographics
client.GetInstagramFollowerHistoryWithResponse() Get Instagram follower history
client.GetLinkedInAggregateAnalyticsWithResponse() Get LinkedIn aggregate stats
client.GetLinkedInOrgAggregateAnalyticsWithResponse() Get LinkedIn organization page aggregate analytics
client.GetLinkedInPostAnalyticsWithResponse() Get LinkedIn post stats
client.GetLinkedInPostReactionsWithResponse() Get LinkedIn post reactions
client.GetPostTimelineWithResponse() Get post analytics timeline
client.GetPostingFrequencyWithResponse() Get frequency vs engagement
client.GetTikTokAccountInsightsWithResponse() Get TikTok account-level insights
client.GetYouTubeChannelInsightsWithResponse() Get YouTube channel-level insights
client.GetYouTubeDailyViewsWithResponse() Get YouTube daily views
client.GetYouTubeDemographicsWithResponse() Get YouTube demographics
Account Groups
Method Description
client.ListAccountGroupsWithResponse() List groups
client.CreateAccountGroupWithResponse() Create group
client.UpdateAccountGroupWithResponse() Update group
client.DeleteAccountGroupWithResponse() Delete group
Queue
Method Description
client.ListQueueSlotsWithResponse() List schedules
client.CreateQueueSlotWithResponse() Create schedule
client.GetNextQueueSlotWithResponse() Get next available slot
client.UpdateQueueSlotWithResponse() Update schedule
client.DeleteQueueSlotWithResponse() Delete schedule
client.PreviewQueueWithResponse() Preview upcoming slots
Webhooks
Method Description
client.CreateWebhookSettingsWithResponse() Create webhook
client.GetWebhookSettingsWithResponse() List webhooks
client.UpdateWebhookSettingsWithResponse() Update webhook
client.DeleteWebhookSettingsWithResponse() Delete webhook
client.TestWebhookWithResponse() Send test webhook
API Keys
Method Description
client.ListApiKeysWithResponse() List keys
client.CreateApiKeyWithResponse() Create key
client.DeleteApiKeyWithResponse() Delete key
Media
Method Description
client.GetMediaPresignedUrlWithResponse() Get upload URL
Users
Method Description
client.ListUsersWithResponse() List users
client.GetUserWithResponse() Get user
Usage
Method Description
client.GetUsageStatsWithResponse() Get plan and usage stats
client.GetXApiPricingWithResponse() Get X/Twitter API pricing table
Logs
Method Description
client.ListLogsWithResponse() List activity logs
Connect (OAuth)
Method Description
client.ListFacebookPagesWithResponse() List Facebook pages
client.ListGoogleBusinessLocationsWithResponse() List GBP locations
client.ListLinkedInOrganizationsWithResponse() List LinkedIn orgs
client.ListPinterestBoardsForSelectionWithResponse() List Pinterest boards
client.ListSnapchatProfilesWithResponse() List Snapchat profiles
client.ListWhatsAppPhoneNumbersWithResponse() List WhatsApp phone numbers for selection
client.GetConnectUrlWithResponse() Get OAuth connect URL
client.GetFacebookPagesWithResponse() List Facebook pages
client.GetGmbLocationsWithResponse() List GBP locations
client.GetLinkedInOrganizationsWithResponse() List LinkedIn orgs
client.GetPendingOAuthDataWithResponse() Get pending OAuth data
client.GetPinterestBoardsWithResponse() List Pinterest boards
client.GetRedditFlairsWithResponse() List subreddit flairs
client.GetRedditSubredditsWithResponse() List Reddit subreddits
client.GetTelegramConnectStatusWithResponse() Generate Telegram code
client.GetYoutubePlaylistsWithResponse() List YouTube playlists
client.UpdateFacebookPageWithResponse() Update Facebook page
client.UpdateGmbLocationWithResponse() Update GBP location
client.UpdateLinkedInOrganizationWithResponse() Switch LinkedIn account type
client.UpdatePinterestBoardsWithResponse() Set default Pinterest board
client.UpdateRedditSubredditsWithResponse() Set default subreddit
client.UpdateYoutubeDefaultPlaylistWithResponse() Set default YouTube playlist
client.CompleteTelegramConnectWithResponse() Check Telegram status
client.CompleteWhatsAppPhoneSelectionWithResponse() Complete WhatsApp phone number selection
client.ConfigureTikTokAdsBrandIdentityWithResponse() Configure TikTok Ads Brand Identity
client.ConnectAdsWithResponse() Connect ads for a platform
client.ConnectBlueskyCredentialsWithResponse() Connect Bluesky account
client.ConnectWhatsAppCredentialsWithResponse() Connect WhatsApp via credentials
client.HandleOAuthCallbackWithResponse() Complete OAuth callback
client.InitiateTelegramConnectWithResponse() Connect Telegram directly
client.SelectFacebookPageWithResponse() Select Facebook page
client.SelectGoogleBusinessLocationWithResponse() Select GBP location
client.SelectLinkedInOrganizationWithResponse() Select LinkedIn org
client.SelectPinterestBoardWithResponse() Select Pinterest board
client.SelectSnapchatProfileWithResponse() Select Snapchat profile
Reddit
Method Description
client.GetRedditFeedWithResponse() Get subreddit feed
client.SearchRedditWithResponse() Search posts
Account Settings
Method Description
client.GetInstagramIceBreakersWithResponse() Get IG ice breakers
client.GetMessengerMenuWithResponse() Get FB persistent menu
client.GetTelegramCommandsWithResponse() Get TG bot commands
client.DeleteInstagramIceBreakersWithResponse() Delete IG ice breakers
client.DeleteMessengerMenuWithResponse() Delete FB persistent menu
client.DeleteTelegramCommandsWithResponse() Delete TG bot commands
client.SetInstagramIceBreakersWithResponse() Set IG ice breakers
client.SetMessengerMenuWithResponse() Set FB persistent menu
client.SetTelegramCommandsWithResponse() Set TG bot commands
Ad Audiences
Method Description
client.ListAdAudiencesWithResponse() List custom audiences
client.CreateAdAudienceWithResponse() Create custom audience
client.GetAdAudienceWithResponse() Get audience details
client.DeleteAdAudienceWithResponse() Delete custom audience
client.AddUsersToAdAudienceWithResponse() Add users to audience
Ad Campaigns
Method Description
client.ListAdCampaignsWithResponse() List campaigns
client.BulkUpdateAdCampaignStatusWithResponse() Pause or resume many campaigns
client.GetAdTreeWithResponse() Get campaign tree
client.GetAdsTimelineWithResponse() Get daily aggregate ad metrics for an account
client.UpdateAdCampaignWithResponse() Update a campaign (budget and/or bid strategy)
client.UpdateAdCampaignStatusWithResponse() Pause or resume a campaign
client.UpdateAdSetWithResponse() Update an ad set (budget, status, and/or bid strategy)
client.UpdateAdSetStatusWithResponse() Pause or resume a single ad set
client.DeleteAdCampaignWithResponse() Delete a campaign
client.DuplicateAdCampaignWithResponse() Duplicate a campaign
Ads
Method Description
client.ListAdAccountsWithResponse() List ad accounts
client.ListAdsWithResponse() List ads
client.ListAdsBusinessCentersWithResponse() List TikTok Business Centers
client.ListConversionAssociationsWithResponse() List campaigns associated with a conversion destination
client.ListConversionDestinationsWithResponse() List destinations for the Conversions API
client.ListFormLeadsWithResponse() List leads for a single form
client.ListLeadFormsWithResponse() List Lead Gen (Instant) forms
client.ListLeadsWithResponse() List submitted leads (cross-form CRM view)
client.CreateConversionDestinationWithResponse() Create a conversion destination (LinkedIn)
client.CreateCtwaAdWithResponse() Create Click-to-WhatsApp ad(s)
client.CreateLeadFormWithResponse() Create a Lead Gen (Instant) form
client.CreateStandaloneAdWithResponse() Create standalone ad
client.CreateTestLeadWithResponse() Create a synthetic test lead
client.GetAdWithResponse() Get ad details
client.GetAdAnalyticsWithResponse() Get ad analytics
client.GetAdCommentsWithResponse() List comments on an ad
client.GetConversionDestinationWithResponse() Fetch a single conversion destination
client.GetConversionMetricsWithResponse() Fetch attribution metrics for a conversion destination
client.GetLeadFormWithResponse() Get a single Lead Gen form
client.UpdateAdWithResponse() Update ad
client.UpdateConversionDestinationWithResponse() Update a conversion destination
client.DeleteAdWithResponse() Cancel an ad
client.DeleteConversionDestinationWithResponse() Soft-delete a conversion destination
client.AddConversionAssociationsWithResponse() Associate campaigns with a conversion destination
client.ArchiveLeadFormWithResponse() Archive a Lead Gen form
client.BoostPostWithResponse() Boost post as ad
client.EstimateAdReachWithResponse() Estimate audience reach
client.RemoveConversionAssociationsWithResponse() Remove campaign↔conversion associations
client.SearchAdInterestsWithResponse() Search targeting interests (deprecated)
client.SearchAdTargetingWithResponse() Search targeting options
client.SendConversionsWithResponse() Send conversion events to an ad platform
Broadcasts
Method Description
client.ListBroadcastRecipientsWithResponse() List broadcast recipients
client.ListBroadcastsWithResponse() List broadcasts
client.CreateBroadcastWithResponse() Create broadcast draft
client.GetBroadcastWithResponse() Get broadcast details
client.UpdateBroadcastWithResponse() Update broadcast
client.DeleteBroadcastWithResponse() Delete broadcast
client.AddBroadcastRecipientsWithResponse() Add recipients to a broadcast
client.CancelBroadcastWithResponse() Cancel broadcast
client.ScheduleBroadcastWithResponse() Schedule broadcast for later
client.SendBroadcastWithResponse() Send broadcast now
Comment Automations
Method Description
client.ListCommentAutomationLogsWithResponse() List automation logs
client.ListCommentAutomationsWithResponse() List comment-to-DM automations
client.CreateCommentAutomationWithResponse() Create comment-to-DM automation
client.GetCommentAutomationWithResponse() Get automation details
client.UpdateCommentAutomationWithResponse() Update automation settings
client.DeleteCommentAutomationWithResponse() Delete automation
Comments (Inbox)
Method Description
client.ListInboxCommentsWithResponse() List commented posts
client.GetInboxPostCommentsWithResponse() Get post comments
client.DeleteInboxCommentWithResponse() Delete comment
client.HideInboxCommentWithResponse() Hide comment
client.LikeInboxCommentWithResponse() Like comment
client.ReplyToInboxPostWithResponse() Reply to comment
client.SendPrivateReplyToCommentWithResponse() Send private reply
client.UnhideInboxCommentWithResponse() Unhide comment
client.UnlikeInboxCommentWithResponse() Unlike comment
Contacts
Method Description
client.ListContactsWithResponse() List contacts
client.BulkCreateContactsWithResponse() Bulk create contacts
client.CreateContactWithResponse() Create contact
client.GetContactWithResponse() Get contact
client.GetContactChannelsWithResponse() List channels for a contact
client.UpdateContactWithResponse() Update contact
client.DeleteContactWithResponse() Delete contact
Custom Fields
Method Description
client.ListCustomFieldsWithResponse() List custom field definitions
client.CreateCustomFieldWithResponse() Create custom field
client.UpdateCustomFieldWithResponse() Update custom field
client.DeleteCustomFieldWithResponse() Delete custom field
client.ClearContactFieldValueWithResponse() Clear custom field value
client.SetContactFieldValueWithResponse() Set custom field value
Discord
Method Description
client.GetDiscordChannelsWithResponse() List Discord guild channels
client.GetDiscordSettingsWithResponse() Get Discord account settings
client.UpdateDiscordSettingsWithResponse() Update Discord settings
GMB Attributes
Method Description
client.GetGoogleBusinessAttributesWithResponse() Get attributes
client.UpdateGoogleBusinessAttributesWithResponse() Update attributes
GMB Food Menus
Method Description
client.GetGoogleBusinessFoodMenusWithResponse() Get food menus
client.UpdateGoogleBusinessFoodMenusWithResponse() Update food menus
GMB Location Details
Method Description
client.GetGoogleBusinessLocationDetailsWithResponse() Get location details
client.UpdateGoogleBusinessLocationDetailsWithResponse() Update location details
GMB Media
Method Description
client.ListGoogleBusinessMediaWithResponse() List media
client.CreateGoogleBusinessMediaWithResponse() Upload photo
client.DeleteGoogleBusinessMediaWithResponse() Delete photo
GMB Place Actions
Method Description
client.ListGoogleBusinessPlaceActionsWithResponse() List action links
client.CreateGoogleBusinessPlaceActionWithResponse() Create action link
client.UpdateGoogleBusinessPlaceActionWithResponse() Update action link
client.DeleteGoogleBusinessPlaceActionWithResponse() Delete action link
GMB Services
Method Description
client.GetGoogleBusinessServicesWithResponse() Get services
client.UpdateGoogleBusinessServicesWithResponse() Replace services
GMB Verifications
Method Description
client.GetGoogleBusinessVerificationsWithResponse() Get verification state
client.CompleteGoogleBusinessVerificationWithResponse() Complete a verification
client.FetchGoogleBusinessVerificationOptionsWithResponse() Fetch verification options
client.StartGoogleBusinessVerificationWithResponse() Start a verification
Instagram
Method Description
client.ListInstagramStoriesWithResponse() List active Instagram stories
client.GetInstagramStoryInsightsWithResponse() Get Instagram story insights
Messages (Inbox)
Method Description
client.ListInboxConversationsWithResponse() List conversations
client.CreateInboxConversationWithResponse() Create conversation
client.GetInboxConversationWithResponse() Get conversation
client.GetInboxConversationMessagesWithResponse() List messages
client.UpdateInboxConversationWithResponse() Update conversation status
client.DeleteInboxMessageWithResponse() Delete message
client.AddMessageReactionWithResponse() Add reaction
client.EditInboxMessageWithResponse() Edit message
client.MarkConversationReadWithResponse() Mark a conversation as read
client.RemoveMessageReactionWithResponse() Remove reaction
client.SendInboxMessageWithResponse() Send message
client.SendTypingIndicatorWithResponse() Send typing indicator
client.UploadMediaDirectWithResponse() Upload media file
Reviews (Inbox)
Method Description
client.ListInboxReviewsWithResponse() List reviews
client.DeleteInboxReviewReplyWithResponse() Delete review reply
client.ReplyToInboxReviewWithResponse() Reply to review
Sequences
Method Description
client.ListSequenceEnrollmentsWithResponse() List enrollments for a sequence
client.ListSequencesWithResponse() List sequences
client.CreateSequenceWithResponse() Create sequence
client.GetSequenceWithResponse() Get sequence with steps
client.UpdateSequenceWithResponse() Update sequence
client.DeleteSequenceWithResponse() Delete sequence
client.ActivateSequenceWithResponse() Activate sequence
client.EnrollContactsWithResponse() Enroll contacts in a sequence
client.PauseSequenceWithResponse() Pause sequence
client.UnenrollContactWithResponse() Unenroll contact
Tracking Tags
Method Description
client.ListTrackingTagSharedAccountsWithResponse() List ad accounts a tracking tag is shared with
client.ListTrackingTagsWithResponse() List tracking tags (Meta Pixels)
client.CreateTrackingTagWithResponse() Create a tracking tag (Meta Pixel)
client.GetTrackingTagWithResponse() Fetch a single tracking tag (Meta Pixel)
client.GetTrackingTagStatsWithResponse() Aggregated event stats for a tracking tag (Meta Pixel)
client.UpdateTrackingTagWithResponse() Update a tracking tag (Meta Pixel)
client.AddTrackingTagSharedAccountWithResponse() Share a tracking tag with an ad account
client.RemoveTrackingTagSharedAccountWithResponse() Stop sharing a tracking tag with an ad account
Twitter Engagement
Method Description
client.BookmarkPostWithResponse() Bookmark a tweet
client.FollowUserWithResponse() Follow a user
client.RemoveBookmarkWithResponse() Remove bookmark
client.RetweetPostWithResponse() Retweet a post
client.UndoRetweetWithResponse() Undo retweet
client.UnfollowUserWithResponse() Unfollow a user
Validate
Method Description
client.ValidateMediaWithResponse() Validate media URL
client.ValidatePostWithResponse() Validate post content
client.ValidatePostLengthWithResponse() Validate character count
client.ValidateSubredditWithResponse() Check subreddit existence
WhatsApp
Method Description
client.ListWhatsAppConversionsWithResponse() List recent WhatsApp conversion events
client.ListWhatsAppGroupChatsWithResponse() List active groups
client.ListWhatsAppGroupJoinRequestsWithResponse() List join requests
client.CreateWhatsAppDatasetWithResponse() Provision CTWA conversions dataset
client.CreateWhatsAppGroupChatWithResponse() Create group
client.CreateWhatsAppGroupInviteLinkWithResponse() Create invite link
client.CreateWhatsAppTemplateWithResponse() Create template
client.GetWhatsAppBusinessProfileWithResponse() Get business profile
client.GetWhatsAppDatasetWithResponse() Get CTWA conversions dataset
client.GetWhatsAppDisplayNameWithResponse() Get display name status
client.GetWhatsAppGroupChatWithResponse() Get group info
client.GetWhatsAppTemplateWithResponse() Get template
client.GetWhatsAppTemplatesWithResponse() List templates
client.UpdateWhatsAppBusinessProfileWithResponse() Update business profile
client.UpdateWhatsAppDisplayNameWithResponse() Request display name change
client.UpdateWhatsAppGroupChatWithResponse() Update group settings
client.UpdateWhatsAppTemplateWithResponse() Update template
client.DeleteWhatsAppGroupChatWithResponse() Delete group
client.DeleteWhatsAppTemplateWithResponse() Delete template
client.AddWhatsAppGroupParticipantsWithResponse() Add participants
client.ApproveWhatsAppGroupJoinRequestsWithResponse() Approve join requests
client.RejectWhatsAppGroupJoinRequestsWithResponse() Reject join requests
client.RemoveWhatsAppGroupParticipantsWithResponse() Remove participants
client.SendWhatsAppConversionWithResponse() Send WhatsApp conversion event
client.UploadWhatsAppProfilePhotoWithResponse() Upload profile picture
WhatsApp Flows
Method Description
client.ListWhatsAppFlowResponsesWithResponse() List flow responses
client.ListWhatsAppFlowVersionsWithResponse() List flow versions
client.ListWhatsAppFlowsWithResponse() List flows
client.CreateWhatsAppFlowWithResponse() Create flow
client.GetWhatsAppFlowWithResponse() Get flow
client.GetWhatsAppFlowJsonWithResponse() Get flow JSON asset
client.GetWhatsAppFlowPreviewWithResponse() Get flow preview URL
client.UpdateWhatsAppFlowWithResponse() Update flow
client.DeleteWhatsAppFlowWithResponse() Delete flow
client.DeprecateWhatsAppFlowWithResponse() Deprecate flow
client.PublishWhatsAppFlowWithResponse() Publish flow
client.SendWhatsAppFlowMessageWithResponse() Send flow message
client.UploadWhatsAppFlowJsonWithResponse() Upload flow JSON
WhatsApp Phone Numbers
Method Description
client.GetWhatsAppNumberInfoWithResponse() Get number status
client.GetWhatsAppPhoneNumberWithResponse() Get phone number
client.GetWhatsAppPhoneNumbersWithResponse() List phone numbers
client.PurchaseWhatsAppPhoneNumberWithResponse() Purchase phone number
client.ReleaseWhatsAppPhoneNumberWithResponse() Release phone number
WhatsApp Templates
Method Description
client.GetWhatsAppLibraryTemplateWithResponse() Look up a library template
Invites
Method Description
client.CreateInviteTokenWithResponse() Create invite token

Documentation

License

MIT

Directories

Path Synopsis
Package zernio provides primitives to interact with the openapi HTTP API.
Package zernio provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL