Documentation
¶
Overview ¶
Package smartlyq is the official Go SDK for the SmartlyQ API.
The HTTP core in this file is hand-written; the resource surface in resources_gen.go is generated from openapi.json by scripts/generate.
Index ¶
- type APIError
- type AccountResource
- func (r *AccountResource) GetMe(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *AccountResource) GetMeBalance(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *AccountResource) GetMeUsage(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type AnalyticsResource
- func (r *AnalyticsResource) BestTime(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) ContentDecay(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) DailyMetrics(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) GetAccount(ctx context.Context, accountId string, query map[string]string, ...) (*Envelope, error)
- func (r *AnalyticsResource) GetOverview(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) GetPosts(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) PostTimeline(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
- func (r *AnalyticsResource) PostingFrequency(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type ArticlesResource
- func (r *ArticlesResource) Delete(ctx context.Context, articleId string, opts *RequestOptions) (*Envelope, error)
- func (r *ArticlesResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ArticlesResource) Get(ctx context.Context, articleId string, opts *RequestOptions) (*Envelope, error)
- func (r *ArticlesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type AudioResource
- func (r *AudioResource) Get(ctx context.Context, audioId string, opts *RequestOptions) (*Envelope, error)
- func (r *AudioResource) SpeechToText(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *AudioResource) TextToSpeech(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type CaptainResource
- func (r *CaptainResource) GetConversation(ctx context.Context, conversationId string, opts *RequestOptions) (*Envelope, error)
- func (r *CaptainResource) ListConversations(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *CaptainResource) SendMessage(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type ChatbotsResource
- func (r *ChatbotsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) GetConversationMessages(ctx context.Context, id string, convId string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) GetTrainStatus(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) ListConversations(ctx context.Context, id string, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) SendMessage(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) Train(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ChatbotsResource) Update(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type Client
- type CommentsResource
- func (r *CommentsResource) Delete(ctx context.Context, commentId string, opts *RequestOptions) (*Envelope, error)
- func (r *CommentsResource) Hide(ctx context.Context, commentId string, opts *RequestOptions) (*Envelope, error)
- func (r *CommentsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *CommentsResource) ReplyTo(ctx context.Context, commentId string, body map[string]any, ...) (*Envelope, error)
- type ContactsResource
- func (r *ContactsResource) AddMessage(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) AddNote(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) AddTags(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) Enroll(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) ListNotes(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) RemoveTags(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ContactsResource) Update(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type ContentResource
- type CustomFieldsResource
- func (r *CustomFieldsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *CustomFieldsResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *CustomFieldsResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- type Envelope
- type ImagesResource
- func (r *ImagesResource) Delete(ctx context.Context, imageId string, opts *RequestOptions) (*Envelope, error)
- func (r *ImagesResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ImagesResource) Get(ctx context.Context, imageId string, opts *RequestOptions) (*Envelope, error)
- func (r *ImagesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type JobsResource
- func (r *JobsResource) Cancel(ctx context.Context, jobId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *JobsResource) Get(ctx context.Context, jobId string, opts *RequestOptions) (*Envelope, error)
- func (r *JobsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type MediaResource
- func (r *MediaResource) Delete(ctx context.Context, mediaId string, opts *RequestOptions) (*Envelope, error)
- func (r *MediaResource) Get(ctx context.Context, mediaId string, opts *RequestOptions) (*Envelope, error)
- func (r *MediaResource) GetUploadUrl(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *MediaResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type MessagesResource
- func (r *MessagesResource) List(ctx context.Context, conversationId string, query map[string]string, ...) (*Envelope, error)
- func (r *MessagesResource) ListConversations(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *MessagesResource) MarkConversationRead(ctx context.Context, conversationId string, opts *RequestOptions) (*Envelope, error)
- func (r *MessagesResource) Send(ctx context.Context, conversationId string, body map[string]any, ...) (*Envelope, error)
- type Meta
- type OpportunitiesResource
- func (r *OpportunitiesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) CreatePipeline(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) ListPipelines(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) Update(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *OpportunitiesResource) UpdateStatus(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type Option
- type Pagination
- type PresentationsResource
- func (r *PresentationsResource) Delete(ctx context.Context, presentationId string, opts *RequestOptions) (*Envelope, error)
- func (r *PresentationsResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *PresentationsResource) Get(ctx context.Context, presentationId string, opts *RequestOptions) (*Envelope, error)
- func (r *PresentationsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type ProfilesResource
- func (r *ProfilesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) CreateConnectLink(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) CreateConnectUrl(ctx context.Context, id string, platform string, body map[string]any, ...) (*Envelope, error)
- func (r *ProfilesResource) Delete(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) GetAccountBilling(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) ListAccounts(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) Pause(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *ProfilesResource) Resume(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- type RequestOptions
- type Response
- type SEOResource
- func (r *SEOResource) AiAudit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) Audit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) BacklinkAnchors(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) BacklinkProspects(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) BacklinksSummary(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) BrandLookup(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) Competitors(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) DomainOverview(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) KeywordDifficulty(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) KeywordResearch(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) PromptExplorer(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) RankHistory(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) RankedKeywords(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) ReferringDomains(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) Serp(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) SiteAudit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SEOResource) SpamScore(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type ShortsResource
- func (r *ShortsResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *ShortsResource) Get(ctx context.Context, uid string, opts *RequestOptions) (*Envelope, error)
- func (r *ShortsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- type SocialResource
- func (r *SocialResource) AccountFollowerStats(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) BulkAccountHealth(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) BulkSchedulePosts(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ConnectAccount(ctx context.Context, platform string, body map[string]any, ...) (*Envelope, error)
- func (r *SocialResource) ConnectAccountStatus(ctx context.Context, platform string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) CreateAccountGroup(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) CreatePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) CreateQueue(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) DeleteAccountGroup(ctx context.Context, groupId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) DeletePost(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) DeleteQueue(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetAccountGroup(ctx context.Context, groupId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetAccountHealth(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetAccountReconnectUrl(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetPost(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetQueue(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) GetQueueNextSlot(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ListAccountGroups(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ListAccounts(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ListPosts(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ListQueues(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) MoveAccount(ctx context.Context, accountId string, body map[string]any, ...) (*Envelope, error)
- func (r *SocialResource) PauseAccount(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) PreviewQueueSlots(ctx context.Context, queueId string, query map[string]string, ...) (*Envelope, error)
- func (r *SocialResource) ResumeAccount(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) RetryPost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) SchedulePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) StopPostRecycle(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) TiktokCreatorInfo(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) UnpublishPost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) UpdateAccount(ctx context.Context, accountId string, body map[string]any, ...) (*Envelope, error)
- func (r *SocialResource) UpdateAccountGroup(ctx context.Context, groupId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) UpdatePost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) UpdateQueue(ctx context.Context, queueId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ValidateBulkBatch(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ValidateMedia(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *SocialResource) ValidatePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type URLsResource
- func (r *URLsResource) Delete(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
- func (r *URLsResource) Get(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
- func (r *URLsResource) GetStats(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
- func (r *URLsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *URLsResource) Shorten(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type Usage
- type VideosResource
- func (r *VideosResource) Delete(ctx context.Context, videoId string, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) GenerateHook(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) GenerateViralThumbnail(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) Get(ctx context.Context, videoId string, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) ListModels(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) SuggestBroll(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *VideosResource) SuggestEmphasis(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type WebhooksResource
- func (r *WebhooksResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *WebhooksResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WebhooksResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *WebhooksResource) ListLogs(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
- func (r *WebhooksResource) Test(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WebhooksResource) Update(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- type WorkspacesResource
- func (r *WorkspacesResource) BulkAction(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) Delete(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) DisableSaas(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) GetSaasPlan(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) GetSubscription(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) GetWallet(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) ListSaasPlans(ctx context.Context, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) Pause(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
- func (r *WorkspacesResource) Resume(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResource ¶
type AccountResource struct {
// contains filtered or unexported fields
}
AccountResource groups the Account endpoints.
func (*AccountResource) GetMe ¶
func (r *AccountResource) GetMe(ctx context.Context, opts *RequestOptions) (*Envelope, error)
GetMe - Get current user profile.
GET /me
func (*AccountResource) GetMeBalance ¶
func (r *AccountResource) GetMeBalance(ctx context.Context, opts *RequestOptions) (*Envelope, error)
GetMeBalance - Get wallet balance.
GET /me/balance
func (*AccountResource) GetMeUsage ¶
func (r *AccountResource) GetMeUsage(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
GetMeUsage - Get usage summary.
GET /me/usage
type AnalyticsResource ¶
type AnalyticsResource struct {
// contains filtered or unexported fields
}
AnalyticsResource groups the Analytics endpoints.
func (*AnalyticsResource) BestTime ¶ added in v0.1.1
func (r *AnalyticsResource) BestTime(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
BestTime - Best time to post.
GET /analytics/best-time
func (*AnalyticsResource) ContentDecay ¶ added in v0.1.1
func (r *AnalyticsResource) ContentDecay(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
ContentDecay - Content decay.
GET /analytics/content-decay
func (*AnalyticsResource) DailyMetrics ¶ added in v0.1.1
func (r *AnalyticsResource) DailyMetrics(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
DailyMetrics - Daily metrics.
GET /analytics/daily-metrics
func (*AnalyticsResource) GetAccount ¶
func (r *AnalyticsResource) GetAccount(ctx context.Context, accountId string, query map[string]string, opts *RequestOptions) (*Envelope, error)
GetAccount - Get account analytics.
GET /analytics/accounts/{account_id}
func (*AnalyticsResource) GetOverview ¶
func (r *AnalyticsResource) GetOverview(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
GetOverview - Get analytics overview.
GET /analytics/overview
func (*AnalyticsResource) GetPosts ¶
func (r *AnalyticsResource) GetPosts(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
GetPosts - Get post analytics.
GET /analytics/posts
func (*AnalyticsResource) PostTimeline ¶ added in v0.1.1
func (r *AnalyticsResource) PostTimeline(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
PostTimeline - Post metric timeline.
GET /analytics/posts/{post_id}/timeline
func (*AnalyticsResource) PostingFrequency ¶ added in v0.1.1
func (r *AnalyticsResource) PostingFrequency(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
PostingFrequency - Posting frequency vs engagement.
GET /analytics/posting-frequency
type ArticlesResource ¶
type ArticlesResource struct {
// contains filtered or unexported fields
}
ArticlesResource groups the Articles endpoints.
func (*ArticlesResource) Delete ¶
func (r *ArticlesResource) Delete(ctx context.Context, articleId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete article.
DELETE /articles/{article_id}
func (*ArticlesResource) Generate ¶
func (r *ArticlesResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Generate - Generate article.
POST /articles/generate
func (*ArticlesResource) Get ¶
func (r *ArticlesResource) Get(ctx context.Context, articleId string, opts *RequestOptions) (*Envelope, error)
Get - Get article.
GET /articles/{article_id}
func (*ArticlesResource) List ¶
func (r *ArticlesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List articles.
GET /articles
type AudioResource ¶
type AudioResource struct {
// contains filtered or unexported fields
}
AudioResource groups the Audio endpoints.
func (*AudioResource) Get ¶
func (r *AudioResource) Get(ctx context.Context, audioId string, opts *RequestOptions) (*Envelope, error)
Get - Get audio.
GET /audio/{audio_id}
func (*AudioResource) SpeechToText ¶
func (r *AudioResource) SpeechToText(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SpeechToText - Speech to text.
POST /audio/speech-to-text
func (*AudioResource) TextToSpeech ¶
func (r *AudioResource) TextToSpeech(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
TextToSpeech - Text to speech.
POST /audio/text-to-speech
type CaptainResource ¶
type CaptainResource struct {
// contains filtered or unexported fields
}
CaptainResource groups the AI Captain endpoints.
func (*CaptainResource) GetConversation ¶
func (r *CaptainResource) GetConversation(ctx context.Context, conversationId string, opts *RequestOptions) (*Envelope, error)
GetConversation - Get AI Captain conversation.
GET /captain/conversations/{conversation_id}
func (*CaptainResource) ListConversations ¶
func (r *CaptainResource) ListConversations(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
ListConversations - List AI Captain conversations.
GET /captain/conversations
func (*CaptainResource) SendMessage ¶
func (r *CaptainResource) SendMessage(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SendMessage - Send AI Captain message.
POST /captain/messages
type ChatbotsResource ¶
type ChatbotsResource struct {
// contains filtered or unexported fields
}
ChatbotsResource groups the Chatbot endpoints.
func (*ChatbotsResource) Create ¶
func (r *ChatbotsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create chatbot.
POST /chatbots
func (*ChatbotsResource) Delete ¶
func (r *ChatbotsResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Delete - Delete chatbot.
DELETE /chatbots/{id}
func (*ChatbotsResource) Get ¶
func (r *ChatbotsResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Get - Get chatbot.
GET /chatbots/{id}
func (*ChatbotsResource) GetConversationMessages ¶
func (r *ChatbotsResource) GetConversationMessages(ctx context.Context, id string, convId string, opts *RequestOptions) (*Envelope, error)
GetConversationMessages - Get conversation messages.
GET /chatbots/{id}/conversations/{conv_id}/messages
func (*ChatbotsResource) GetTrainStatus ¶
func (r *ChatbotsResource) GetTrainStatus(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
GetTrainStatus - Get chatbot training status.
GET /chatbots/{id}/train-status
func (*ChatbotsResource) List ¶
func (r *ChatbotsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List chatbots.
GET /chatbots
func (*ChatbotsResource) ListConversations ¶
func (r *ChatbotsResource) ListConversations(ctx context.Context, id string, query map[string]string, opts *RequestOptions) (*Envelope, error)
ListConversations - List chatbot conversations.
GET /chatbots/{id}/conversations
func (*ChatbotsResource) SendMessage ¶
func (r *ChatbotsResource) SendMessage(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
SendMessage - Send chatbot message.
POST /chatbots/{id}/messages
func (*ChatbotsResource) Train ¶
func (r *ChatbotsResource) Train(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Train - Start chatbot training.
POST /chatbots/{id}/train
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the SmartlyQ API client. Construct it with NewClient and access endpoints through its resource fields, e.g. client.Social.CreatePost(...).
type CommentsResource ¶
type CommentsResource struct {
// contains filtered or unexported fields
}
CommentsResource groups the Comments endpoints.
func (*CommentsResource) Delete ¶
func (r *CommentsResource) Delete(ctx context.Context, commentId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete a comment.
DELETE /social/comments/{comment_id}
func (*CommentsResource) Hide ¶
func (r *CommentsResource) Hide(ctx context.Context, commentId string, opts *RequestOptions) (*Envelope, error)
Hide - Hide or unhide a comment.
POST /social/comments/{comment_id}/hide
func (*CommentsResource) List ¶
func (r *CommentsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List comments.
GET /social/comments
type ContactsResource ¶
type ContactsResource struct {
// contains filtered or unexported fields
}
ContactsResource groups the CRM Contacts endpoints.
func (*ContactsResource) AddMessage ¶
func (r *ContactsResource) AddMessage(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
AddMessage - Log a message on a contact's timeline.
POST /contacts/{id}/messages
func (*ContactsResource) AddNote ¶
func (r *ContactsResource) AddNote(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
AddNote - Add a note to a contact.
POST /contacts/{id}/notes
func (*ContactsResource) AddTags ¶
func (r *ContactsResource) AddTags(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
AddTags - Add tags to a contact.
POST /contacts/{id}/tags
func (*ContactsResource) Create ¶
func (r *ContactsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create or upsert a contact.
POST /contacts
func (*ContactsResource) Enroll ¶
func (r *ContactsResource) Enroll(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
Enroll - Enroll a contact in an automation.
POST /contacts/{id}/enroll
func (*ContactsResource) Get ¶
func (r *ContactsResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Get - Get a contact.
GET /contacts/{id}
func (*ContactsResource) List ¶
func (r *ContactsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List contacts.
GET /contacts
func (*ContactsResource) ListNotes ¶
func (r *ContactsResource) ListNotes(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
ListNotes - List contact notes.
GET /contacts/{id}/notes
func (*ContactsResource) RemoveTags ¶
func (r *ContactsResource) RemoveTags(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
RemoveTags - Remove tags from a contact.
DELETE /contacts/{id}/tags
type ContentResource ¶
type ContentResource struct {
// contains filtered or unexported fields
}
ContentResource groups the Content endpoints.
func (*ContentResource) GenerateCaption ¶
func (r *ContentResource) GenerateCaption(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
GenerateCaption - Generate a social caption.
POST /content/caption
func (*ContentResource) Rewrite ¶
func (r *ContentResource) Rewrite(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Rewrite - Rewrite content.
POST /content/rewrite
type CustomFieldsResource ¶
type CustomFieldsResource struct {
// contains filtered or unexported fields
}
CustomFieldsResource groups the CRM Custom Fields endpoints.
func (*CustomFieldsResource) Create ¶
func (r *CustomFieldsResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create a custom field.
POST /custom-fields
func (*CustomFieldsResource) Delete ¶
func (r *CustomFieldsResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Delete - Delete a custom field.
DELETE /custom-fields/{id}
func (*CustomFieldsResource) List ¶
func (r *CustomFieldsResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
List - List custom fields.
GET /custom-fields
type Envelope ¶
type Envelope struct {
Success bool `json:"success"`
Data json.RawMessage `json:"data,omitempty"`
Usage *Usage `json:"usage,omitempty"`
Meta *Meta `json:"meta,omitempty"`
Pagination *Pagination `json:"pagination,omitempty"`
}
Envelope is the standard SmartlyQ response envelope. Data is left raw so callers can unmarshal it into their own types with UnmarshalData.
func (*Envelope) UnmarshalData ¶
UnmarshalData unmarshals the envelope's data payload into v.
type ImagesResource ¶
type ImagesResource struct {
// contains filtered or unexported fields
}
ImagesResource groups the Images endpoints.
func (*ImagesResource) Delete ¶
func (r *ImagesResource) Delete(ctx context.Context, imageId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete image.
DELETE /images/{image_id}
func (*ImagesResource) Generate ¶
func (r *ImagesResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Generate - Generate image.
POST /images/generate
func (*ImagesResource) Get ¶
func (r *ImagesResource) Get(ctx context.Context, imageId string, opts *RequestOptions) (*Envelope, error)
Get - Get image.
GET /images/{image_id}
func (*ImagesResource) List ¶
func (r *ImagesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List images.
GET /images
type JobsResource ¶
type JobsResource struct {
// contains filtered or unexported fields
}
JobsResource groups the Jobs endpoints.
func (*JobsResource) Cancel ¶
func (r *JobsResource) Cancel(ctx context.Context, jobId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
Cancel - Cancel job.
POST /jobs/{job_id}/cancel
func (*JobsResource) Get ¶
func (r *JobsResource) Get(ctx context.Context, jobId string, opts *RequestOptions) (*Envelope, error)
Get - Get job.
GET /jobs/{job_id}
func (*JobsResource) List ¶
func (r *JobsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List jobs.
GET /jobs
type MediaResource ¶
type MediaResource struct {
// contains filtered or unexported fields
}
MediaResource groups the Media endpoints.
func (*MediaResource) Delete ¶
func (r *MediaResource) Delete(ctx context.Context, mediaId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete media.
DELETE /media/{media_id}
func (*MediaResource) Get ¶
func (r *MediaResource) Get(ctx context.Context, mediaId string, opts *RequestOptions) (*Envelope, error)
Get - Get media.
GET /media/{media_id}
func (*MediaResource) GetUploadUrl ¶
func (r *MediaResource) GetUploadUrl(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
GetUploadUrl - Get presigned upload URL.
POST /media/upload-url
func (*MediaResource) List ¶
func (r *MediaResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List media.
GET /media
type MessagesResource ¶
type MessagesResource struct {
// contains filtered or unexported fields
}
MessagesResource groups the Direct Messages endpoints.
func (*MessagesResource) List ¶
func (r *MessagesResource) List(ctx context.Context, conversationId string, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List messages in a conversation.
GET /social/conversations/{conversation_id}/messages
func (*MessagesResource) ListConversations ¶
func (r *MessagesResource) ListConversations(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
ListConversations - List DM conversations.
GET /social/conversations
func (*MessagesResource) MarkConversationRead ¶
func (r *MessagesResource) MarkConversationRead(ctx context.Context, conversationId string, opts *RequestOptions) (*Envelope, error)
MarkConversationRead - Mark a conversation read.
POST /social/conversations/{conversation_id}/read
type Meta ¶
type Meta struct {
RequestID string `json:"request_id,omitempty"`
Timestamp string `json:"timestamp,omitempty"`
}
Meta carries response metadata.
type OpportunitiesResource ¶
type OpportunitiesResource struct {
// contains filtered or unexported fields
}
OpportunitiesResource groups the CRM Opportunities endpoints.
func (*OpportunitiesResource) Create ¶
func (r *OpportunitiesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create an opportunity.
POST /opportunities
func (*OpportunitiesResource) CreatePipeline ¶
func (r *OpportunitiesResource) CreatePipeline(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreatePipeline - Create a pipeline.
POST /pipelines
func (*OpportunitiesResource) Delete ¶
func (r *OpportunitiesResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Delete - Delete an opportunity.
DELETE /opportunities/{id}
func (*OpportunitiesResource) Get ¶
func (r *OpportunitiesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Get - Get an opportunity.
GET /opportunities/{id}
func (*OpportunitiesResource) List ¶
func (r *OpportunitiesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List opportunities.
GET /opportunities
func (*OpportunitiesResource) ListPipelines ¶
func (r *OpportunitiesResource) ListPipelines(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListPipelines - List pipelines.
GET /pipelines
func (*OpportunitiesResource) Update ¶
func (r *OpportunitiesResource) Update(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
Update - Update an opportunity.
PATCH /opportunities/{id}
func (*OpportunitiesResource) UpdateStatus ¶
func (r *OpportunitiesResource) UpdateStatus(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UpdateStatus - Update opportunity status.
POST /opportunities/{id}/status
type Option ¶
type Option func(*Client)
Option configures a Client.
func WithBaseURL ¶
WithBaseURL overrides the API base URL (default https://api.smartlyq.com/v1).
func WithHTTPClient ¶
WithHTTPClient sets a custom *http.Client for all requests.
func WithMaxRetries ¶
WithMaxRetries sets the number of automatic retries on 429/5xx responses (default 2). Zero disables retries.
func WithTimeout ¶
WithTimeout sets the per-request timeout (default 60s). Zero disables it.
type Pagination ¶
type Pagination struct {
Page int `json:"page,omitempty"`
PerPage int `json:"per_page,omitempty"`
Total int `json:"total,omitempty"`
Pages int `json:"pages,omitempty"`
}
Pagination describes list pagination.
type PresentationsResource ¶
type PresentationsResource struct {
// contains filtered or unexported fields
}
PresentationsResource groups the Presentations endpoints.
func (*PresentationsResource) Delete ¶
func (r *PresentationsResource) Delete(ctx context.Context, presentationId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete presentation.
DELETE /presentations/{presentation_id}
func (*PresentationsResource) Generate ¶
func (r *PresentationsResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Generate - Generate presentation.
POST /presentations/generate
func (*PresentationsResource) Get ¶
func (r *PresentationsResource) Get(ctx context.Context, presentationId string, opts *RequestOptions) (*Envelope, error)
Get - Get presentation.
GET /presentations/{presentation_id}
func (*PresentationsResource) List ¶
func (r *PresentationsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List presentations.
GET /presentations
type ProfilesResource ¶
type ProfilesResource struct {
// contains filtered or unexported fields
}
ProfilesResource groups the Profiles endpoints.
func (*ProfilesResource) Create ¶
func (r *ProfilesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create a profile.
POST /profiles
func (*ProfilesResource) CreateConnectLink ¶
func (r *ProfilesResource) CreateConnectLink(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreateConnectLink - Create a hosted connect link.
POST /profiles/{id}/connect-link
func (*ProfilesResource) CreateConnectUrl ¶
func (r *ProfilesResource) CreateConnectUrl(ctx context.Context, id string, platform string, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreateConnectUrl - Get a raw connect URL for one platform.
POST /profiles/{id}/connect/{platform}
func (*ProfilesResource) Delete ¶
func (r *ProfilesResource) Delete(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
Delete - Delete a profile.
DELETE /profiles/{id}
func (*ProfilesResource) Get ¶
func (r *ProfilesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Get - Get a profile.
GET /profiles/{id}
func (*ProfilesResource) GetAccountBilling ¶
func (r *ProfilesResource) GetAccountBilling(ctx context.Context, opts *RequestOptions) (*Envelope, error)
GetAccountBilling - Account billing summary.
GET /me/account-billing
func (*ProfilesResource) List ¶
func (r *ProfilesResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List profiles.
GET /profiles
func (*ProfilesResource) ListAccounts ¶
func (r *ProfilesResource) ListAccounts(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
ListAccounts - List a profile's connected accounts.
GET /profiles/{id}/accounts
func (*ProfilesResource) Pause ¶
func (r *ProfilesResource) Pause(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Pause - Pause a profile.
POST /profiles/{id}/pause
func (*ProfilesResource) Resume ¶
func (r *ProfilesResource) Resume(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Resume - Resume a profile.
POST /profiles/{id}/resume
type RequestOptions ¶
type RequestOptions struct {
// ProfileID acts on behalf of a managed Profile (sent as X-Profile-Id).
ProfileID string
// IdempotencyKey makes write requests safe to retry (sent as Idempotency-Key).
IdempotencyKey string
// Headers are extra headers merged into the request.
Headers map[string]string
}
RequestOptions carries per-request options, passed as the last argument of every method. A nil *RequestOptions is valid and means defaults.
type SEOResource ¶
type SEOResource struct {
// contains filtered or unexported fields
}
SEOResource groups the SEO endpoints.
func (*SEOResource) AiAudit ¶
func (r *SEOResource) AiAudit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
AiAudit - AI Visibility Audit (async).
POST /seo/ai-audit
func (*SEOResource) Audit ¶
func (r *SEOResource) Audit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Audit - On-page SEO audit.
POST /seo/audit
func (*SEOResource) BacklinkAnchors ¶
func (r *SEOResource) BacklinkAnchors(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BacklinkAnchors - Backlink anchors.
POST /seo/backlink-anchors
func (*SEOResource) BacklinkProspects ¶
func (r *SEOResource) BacklinkProspects(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BacklinkProspects - Backlink prospects (link gap).
POST /seo/backlink-prospects
func (*SEOResource) BacklinksSummary ¶
func (r *SEOResource) BacklinksSummary(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BacklinksSummary - Backlink profile summary.
POST /seo/backlinks-summary
func (*SEOResource) BrandLookup ¶
func (r *SEOResource) BrandLookup(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BrandLookup - AI Visibility: brand lookup.
POST /seo/brand-lookup
func (*SEOResource) Competitors ¶
func (r *SEOResource) Competitors(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Competitors - Organic competitors.
POST /seo/competitors
func (*SEOResource) DomainOverview ¶
func (r *SEOResource) DomainOverview(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
DomainOverview - Domain rank overview.
POST /seo/domain-overview
func (*SEOResource) KeywordDifficulty ¶
func (r *SEOResource) KeywordDifficulty(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
KeywordDifficulty - Keyword difficulty.
POST /seo/keyword-difficulty
func (*SEOResource) KeywordResearch ¶
func (r *SEOResource) KeywordResearch(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
KeywordResearch - Keyword research.
POST /seo/keyword-research
func (*SEOResource) PromptExplorer ¶
func (r *SEOResource) PromptExplorer(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
PromptExplorer - AI Visibility: prompt explorer.
POST /seo/prompt-explorer
func (*SEOResource) RankHistory ¶
func (r *SEOResource) RankHistory(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
RankHistory - Historical rank overview.
POST /seo/rank-history
func (*SEOResource) RankedKeywords ¶
func (r *SEOResource) RankedKeywords(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
RankedKeywords - Ranked keywords (rank tracking).
POST /seo/ranked-keywords
func (*SEOResource) ReferringDomains ¶
func (r *SEOResource) ReferringDomains(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
ReferringDomains - Referring domains.
POST /seo/referring-domains
func (*SEOResource) Serp ¶
func (r *SEOResource) Serp(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Serp - Live SERP lookup.
POST /seo/serp
func (*SEOResource) SiteAudit ¶
func (r *SEOResource) SiteAudit(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SiteAudit - Deep site audit.
POST /seo/site-audit
func (*SEOResource) SpamScore ¶
func (r *SEOResource) SpamScore(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SpamScore - Backlink spam score.
POST /seo/spam-score
type ShortsResource ¶
type ShortsResource struct {
// contains filtered or unexported fields
}
ShortsResource groups the Shorts endpoints.
func (*ShortsResource) Generate ¶
func (r *ShortsResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Generate - Generate viral shorts from a long video.
POST /shorts/generate
func (*ShortsResource) Get ¶
func (r *ShortsResource) Get(ctx context.Context, uid string, opts *RequestOptions) (*Envelope, error)
Get - Get shorts job + clips.
GET /shorts/{uid}
func (*ShortsResource) List ¶
func (r *ShortsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List shorts jobs.
GET /shorts
type SocialResource ¶
type SocialResource struct {
// contains filtered or unexported fields
}
SocialResource groups the Social endpoints.
func (*SocialResource) AccountFollowerStats ¶
func (r *SocialResource) AccountFollowerStats(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
AccountFollowerStats - Follower stats.
GET /social/accounts/follower-stats
func (*SocialResource) BulkAccountHealth ¶
func (r *SocialResource) BulkAccountHealth(ctx context.Context, opts *RequestOptions) (*Envelope, error)
BulkAccountHealth - Bulk account health.
GET /social/accounts/health
func (*SocialResource) BulkSchedulePosts ¶
func (r *SocialResource) BulkSchedulePosts(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BulkSchedulePosts - Bulk schedule posts.
POST /social/posts/bulk
func (*SocialResource) ConnectAccount ¶
func (r *SocialResource) ConnectAccount(ctx context.Context, platform string, body map[string]any, opts *RequestOptions) (*Envelope, error)
ConnectAccount - Start headless account connection.
POST /social/connect/{platform}
func (*SocialResource) ConnectAccountStatus ¶
func (r *SocialResource) ConnectAccountStatus(ctx context.Context, platform string, opts *RequestOptions) (*Envelope, error)
ConnectAccountStatus - Poll headless connection status.
GET /social/connect/{platform}
func (*SocialResource) CreateAccountGroup ¶
func (r *SocialResource) CreateAccountGroup(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreateAccountGroup - Create account group.
POST /social/account-groups
func (*SocialResource) CreatePost ¶
func (r *SocialResource) CreatePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreatePost - Create post (publish immediately).
POST /social/posts
func (*SocialResource) CreateQueue ¶
func (r *SocialResource) CreateQueue(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
CreateQueue - Create queue.
POST /social/queues
func (*SocialResource) DeleteAccountGroup ¶
func (r *SocialResource) DeleteAccountGroup(ctx context.Context, groupId string, opts *RequestOptions) (*Envelope, error)
DeleteAccountGroup - Delete account group.
DELETE /social/account-groups/{group_id}
func (*SocialResource) DeletePost ¶
func (r *SocialResource) DeletePost(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
DeletePost - Delete social post.
DELETE /social/posts/{post_id}
func (*SocialResource) DeleteQueue ¶
func (r *SocialResource) DeleteQueue(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
DeleteQueue - Delete queue.
DELETE /social/queues/{queue_id}
func (*SocialResource) GetAccountGroup ¶
func (r *SocialResource) GetAccountGroup(ctx context.Context, groupId string, opts *RequestOptions) (*Envelope, error)
GetAccountGroup - Get account group.
GET /social/account-groups/{group_id}
func (*SocialResource) GetAccountHealth ¶
func (r *SocialResource) GetAccountHealth(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
GetAccountHealth - Account health.
GET /social/accounts/{account_id}/health
func (*SocialResource) GetAccountReconnectUrl ¶
func (r *SocialResource) GetAccountReconnectUrl(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
GetAccountReconnectUrl - Account reconnect URL.
GET /social/accounts/{account_id}/reconnect-url
func (*SocialResource) GetPost ¶
func (r *SocialResource) GetPost(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
GetPost - Get social post.
GET /social/posts/{post_id}
func (*SocialResource) GetQueue ¶
func (r *SocialResource) GetQueue(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
GetQueue - Get queue.
GET /social/queues/{queue_id}
func (*SocialResource) GetQueueNextSlot ¶
func (r *SocialResource) GetQueueNextSlot(ctx context.Context, queueId string, opts *RequestOptions) (*Envelope, error)
GetQueueNextSlot - Get next open slot.
GET /social/queues/{queue_id}/next-slot
func (*SocialResource) ListAccountGroups ¶
func (r *SocialResource) ListAccountGroups(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListAccountGroups - List account groups.
GET /social/account-groups
func (*SocialResource) ListAccounts ¶
func (r *SocialResource) ListAccounts(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListAccounts - List social accounts.
GET /social/accounts
func (*SocialResource) ListPosts ¶
func (r *SocialResource) ListPosts(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
ListPosts - List social posts.
GET /social/posts
func (*SocialResource) ListQueues ¶
func (r *SocialResource) ListQueues(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListQueues - List queues.
GET /social/queues
func (*SocialResource) MoveAccount ¶
func (r *SocialResource) MoveAccount(ctx context.Context, accountId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
MoveAccount - Move account to profile.
POST /social/accounts/{account_id}/move
func (*SocialResource) PauseAccount ¶
func (r *SocialResource) PauseAccount(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
PauseAccount - Pause posting to an account.
POST /social/accounts/{account_id}/pause
func (*SocialResource) PreviewQueueSlots ¶
func (r *SocialResource) PreviewQueueSlots(ctx context.Context, queueId string, query map[string]string, opts *RequestOptions) (*Envelope, error)
PreviewQueueSlots - Preview upcoming slots.
GET /social/queues/{queue_id}/preview
func (*SocialResource) ResumeAccount ¶
func (r *SocialResource) ResumeAccount(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
ResumeAccount - Resume posting to an account.
POST /social/accounts/{account_id}/resume
func (*SocialResource) RetryPost ¶
func (r *SocialResource) RetryPost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
RetryPost - Retry publishing a post.
POST /social/posts/{post_id}/retry
func (*SocialResource) SchedulePost ¶
func (r *SocialResource) SchedulePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SchedulePost - Schedule post.
POST /social/posts/schedule
func (*SocialResource) StopPostRecycle ¶
func (r *SocialResource) StopPostRecycle(ctx context.Context, postId string, opts *RequestOptions) (*Envelope, error)
StopPostRecycle - Stop recycling.
DELETE /social/posts/{post_id}/recycle
func (*SocialResource) TiktokCreatorInfo ¶
func (r *SocialResource) TiktokCreatorInfo(ctx context.Context, accountId string, opts *RequestOptions) (*Envelope, error)
TiktokCreatorInfo - TikTok creator info.
GET /social/accounts/{account_id}/tiktok/creator-info
func (*SocialResource) UnpublishPost ¶
func (r *SocialResource) UnpublishPost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UnpublishPost - Unpublish post.
POST /social/posts/{post_id}/unpublish
func (*SocialResource) UpdateAccount ¶
func (r *SocialResource) UpdateAccount(ctx context.Context, accountId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UpdateAccount - Rename account.
PATCH /social/accounts/{account_id}
func (*SocialResource) UpdateAccountGroup ¶
func (r *SocialResource) UpdateAccountGroup(ctx context.Context, groupId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UpdateAccountGroup - Update account group.
PUT /social/account-groups/{group_id}
func (*SocialResource) UpdatePost ¶
func (r *SocialResource) UpdatePost(ctx context.Context, postId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UpdatePost - Update social post.
PATCH /social/posts/{post_id}
func (*SocialResource) UpdateQueue ¶
func (r *SocialResource) UpdateQueue(ctx context.Context, queueId string, body map[string]any, opts *RequestOptions) (*Envelope, error)
UpdateQueue - Update queue.
PUT /social/queues/{queue_id}
func (*SocialResource) ValidateBulkBatch ¶
func (r *SocialResource) ValidateBulkBatch(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
ValidateBulkBatch - Validate a bulk batch.
POST /social/posts/bulk/validate
func (*SocialResource) ValidateMedia ¶
func (r *SocialResource) ValidateMedia(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
ValidateMedia - Validate media URL.
POST /social/validate/media
func (*SocialResource) ValidatePost ¶
func (r *SocialResource) ValidatePost(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
ValidatePost - Validate post content.
POST /social/validate/post
type URLsResource ¶
type URLsResource struct {
// contains filtered or unexported fields
}
URLsResource groups the URLs endpoints.
func (*URLsResource) Delete ¶
func (r *URLsResource) Delete(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete short URL.
DELETE /urls/{url_id}
func (*URLsResource) Get ¶
func (r *URLsResource) Get(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
Get - Get short URL.
GET /urls/{url_id}
func (*URLsResource) GetStats ¶
func (r *URLsResource) GetStats(ctx context.Context, urlId string, opts *RequestOptions) (*Envelope, error)
GetStats - Get short URL stats.
GET /urls/{url_id}/stats
func (*URLsResource) List ¶
func (r *URLsResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List short URLs.
GET /urls
func (*URLsResource) Shorten ¶
func (r *URLsResource) Shorten(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Shorten - Shorten URL.
POST /urls/shorten
type Usage ¶
type Usage struct {
Units int `json:"units,omitempty"`
Cost string `json:"cost,omitempty"`
BalanceRemaining string `json:"balance_remaining,omitempty"`
}
Usage reports metered usage charged for a request.
type VideosResource ¶
type VideosResource struct {
// contains filtered or unexported fields
}
VideosResource groups the Videos endpoints.
func (*VideosResource) Delete ¶
func (r *VideosResource) Delete(ctx context.Context, videoId string, opts *RequestOptions) (*Envelope, error)
Delete - Delete video.
DELETE /videos/{video_id}
func (*VideosResource) Generate ¶
func (r *VideosResource) Generate(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Generate - Generate video.
POST /videos/generate
func (*VideosResource) GenerateHook ¶
func (r *VideosResource) GenerateHook(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
GenerateHook - Generate a viral hook line.
POST /videos/hook
func (*VideosResource) GenerateViralThumbnail ¶
func (r *VideosResource) GenerateViralThumbnail(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
GenerateViralThumbnail - Generate a viral thumbnail.
POST /videos/viral-thumbnail
func (*VideosResource) Get ¶
func (r *VideosResource) Get(ctx context.Context, videoId string, opts *RequestOptions) (*Envelope, error)
Get - Get video.
GET /videos/{video_id}
func (*VideosResource) List ¶
func (r *VideosResource) List(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
List - List videos.
GET /videos
func (*VideosResource) ListModels ¶
func (r *VideosResource) ListModels(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListModels - List available video models.
GET /videos/models
func (*VideosResource) SuggestBroll ¶
func (r *VideosResource) SuggestBroll(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SuggestBroll - Suggest B-roll moments.
POST /videos/broll-suggest
func (*VideosResource) SuggestEmphasis ¶
func (r *VideosResource) SuggestEmphasis(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
SuggestEmphasis - Suggest on-screen emphasis.
POST /videos/emphasis
type WebhooksResource ¶
type WebhooksResource struct {
// contains filtered or unexported fields
}
WebhooksResource groups the Webhooks endpoints.
func (*WebhooksResource) Create ¶
func (r *WebhooksResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create webhook.
POST /webhooks
func (*WebhooksResource) Delete ¶
func (r *WebhooksResource) Delete(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Delete - Delete webhook.
DELETE /webhooks/{id}
func (*WebhooksResource) List ¶
func (r *WebhooksResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
List - List webhooks.
GET /webhooks
func (*WebhooksResource) ListLogs ¶
func (r *WebhooksResource) ListLogs(ctx context.Context, query map[string]string, opts *RequestOptions) (*Envelope, error)
ListLogs - List webhook delivery logs.
GET /webhooks/logs
func (*WebhooksResource) Test ¶
func (r *WebhooksResource) Test(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Test - Send test webhook.
POST /webhooks/{id}/test
type WorkspacesResource ¶
type WorkspacesResource struct {
// contains filtered or unexported fields
}
WorkspacesResource groups the Workspaces endpoints.
func (*WorkspacesResource) BulkAction ¶
func (r *WorkspacesResource) BulkAction(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
BulkAction - Bulk sub-account action.
POST /workspaces/bulk
func (*WorkspacesResource) Create ¶
func (r *WorkspacesResource) Create(ctx context.Context, body map[string]any, opts *RequestOptions) (*Envelope, error)
Create - Create a workspace (sub-account).
POST /workspaces
func (*WorkspacesResource) Delete ¶
func (r *WorkspacesResource) Delete(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
Delete - Delete a workspace (sub-account).
DELETE /workspaces/{id}
func (*WorkspacesResource) DisableSaas ¶
func (r *WorkspacesResource) DisableSaas(ctx context.Context, id string, body map[string]any, opts *RequestOptions) (*Envelope, error)
DisableSaas - Disable SaaS mode for a workspace.
POST /workspaces/{id}/disable-saas
func (*WorkspacesResource) Get ¶
func (r *WorkspacesResource) Get(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Get - Get a workspace (sub-account).
GET /workspaces/{id}
func (*WorkspacesResource) GetSaasPlan ¶
func (r *WorkspacesResource) GetSaasPlan(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
GetSaasPlan - Get a SaaS plan.
GET /saas/plans/{id}
func (*WorkspacesResource) GetSubscription ¶
func (r *WorkspacesResource) GetSubscription(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
GetSubscription - Get a sub-account's subscription.
GET /workspaces/{id}/subscription
func (*WorkspacesResource) GetWallet ¶
func (r *WorkspacesResource) GetWallet(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
GetWallet - Get a sub-account's wallet balance.
GET /workspaces/{id}/wallet
func (*WorkspacesResource) List ¶
func (r *WorkspacesResource) List(ctx context.Context, opts *RequestOptions) (*Envelope, error)
List - List workspaces (sub-accounts).
GET /workspaces
func (*WorkspacesResource) ListSaasPlans ¶
func (r *WorkspacesResource) ListSaasPlans(ctx context.Context, opts *RequestOptions) (*Envelope, error)
ListSaasPlans - List SaaS plans.
GET /saas/plans
func (*WorkspacesResource) Pause ¶
func (r *WorkspacesResource) Pause(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Pause - Pause (suspend) a workspace.
POST /workspaces/{id}/pause
func (*WorkspacesResource) Resume ¶
func (r *WorkspacesResource) Resume(ctx context.Context, id string, opts *RequestOptions) (*Envelope, error)
Resume - Resume a paused workspace.
POST /workspaces/{id}/resume
Directories
¶
| Path | Synopsis |
|---|---|
|
scripts
|
|
|
generate
command
Command generate reads openapi.json and emits the generated parts of the SDK: resources_gen.go (the resource surface), endpoints_gen_test.go (one test per operation), and the README's API reference section.
|
Command generate reads openapi.json and emits the generated parts of the SDK: resources_gen.go (the resource surface), endpoints_gen_test.go (one test per operation), and the README's API reference section. |