Versions in this module Expand all Collapse all v0 v0.1.1 Jul 20, 2026 v0.1.0 Jul 19, 2026 Changes in this version + func NewIdempotencyKey() (string, error) + func OperationOwnership() map[string][]string + func Operations() map[string]Operation + func VerifyWebhook(ctx context.Context, options WebhookVerificationOptions) (bool, error) + func WaitForJob(parent context.Context, fetch JobFetcher, options WaitOptions) (map[string]any, error) + type APIError struct + Code string + Detail string + RequestID string + RetryAfter time.Duration + Status int + ValidationErrors any + func (e *APIError) Error() string + type AccountsService struct + func (service *AccountsService) DisconnectAccount(ctx context.Context, options CallOptions) (*Response, error) + func (service *AccountsService) GetAccount(ctx context.Context, options CallOptions) (*Response, error) + func (service *AccountsService) ListAccounts(ctx context.Context, options CallOptions) (*Response, error) + func (service *AccountsService) VerifyAccount(ctx context.Context, options CallOptions) (*Response, error) + type AnalyticsService struct + func (service *AnalyticsService) GetAnalyticsAudience(ctx context.Context, options CallOptions) (*Response, error) + func (service *AnalyticsService) GetAnalyticsNetworks(ctx context.Context, options CallOptions) (*Response, error) + func (service *AnalyticsService) GetAnalyticsSummary(ctx context.Context, options CallOptions) (*Response, error) + func (service *AnalyticsService) GetAnalyticsTimeseries(ctx context.Context, options CallOptions) (*Response, error) + func (service *AnalyticsService) ListAnalyticsPosts(ctx context.Context, options CallOptions) (*Response, error) + type AuditService struct + func (service *AuditService) ListAuditEvents(ctx context.Context, options CallOptions) (*Response, error) + type AuthService struct + func (service *AuthService) ForgotPassword(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) Login(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) Logout(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) LogoutAll(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) Refresh(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) Register(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) ResendVerification(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) ResetPassword(ctx context.Context, options CallOptions) (*Response, error) + func (service *AuthService) VerifyEmail(ctx context.Context, options CallOptions) (*Response, error) + type CalendarService struct + func (service *CalendarService) ListCalendarEvents(ctx context.Context, options CallOptions) (*Response, error) + type CallOptions struct + Body any + BodyFactory func() (io.ReadCloser, error) + ContentType string + Headers http.Header + IdempotencyKey string + IfMatch string + Path map[string]string + Query url.Values + RawBody io.Reader + Sink io.Writer + Timeout time.Duration + type CancelledError struct + Cause error + Message string + func (e *CancelledError) Error() string + func (e *CancelledError) Unwrap() error + type Client struct + func NewClient(options ...ClientOption) (*Client, error) + func (client *Client) Call(parent context.Context, operationID string, options CallOptions) (*Response, error) + func (client *Client) String() string + type ClientOption func(*clientConfig) error + func WithAccessToken(token string) ClientOption + func WithBaseURL(value string) ClientOption + func WithHTTPClient(value *http.Client) ClientOption + func WithMaxRetries(value int) ClientOption + func WithRandom(value func() float64) ClientOption + func WithResponseLimits(successBytes, errorBytes int64) ClientOption + func WithRetryBaseDelay(value time.Duration) ClientOption + func WithSleeper(value func(context.Context, time.Duration) error) ClientOption + func WithTimeout(value time.Duration) ClientOption + func WithTokenProvider(provider TokenProvider) ClientOption + type ConfigurationError struct + Message string + func (e *ConfigurationError) Error() string + type ConnectionsService struct + func (service *ConnectionsService) CancelAccountConnection(ctx context.Context, options CallOptions) (*Response, error) + func (service *ConnectionsService) ConfirmAccountConnection(ctx context.Context, options CallOptions) (*Response, error) + func (service *ConnectionsService) GetAccountConnection(ctx context.Context, options CallOptions) (*Response, error) + func (service *ConnectionsService) StartAccountConnection(ctx context.Context, options CallOptions) (*Response, error) + type DecodeError struct + Cause error + Message string + RequestID string + func (e *DecodeError) Error() string + func (e *DecodeError) Unwrap() error + type GroupsService struct + func (service *GroupsService) CreateGroup(ctx context.Context, options CallOptions) (*Response, error) + func (service *GroupsService) DeleteGroup(ctx context.Context, options CallOptions) (*Response, error) + func (service *GroupsService) GetGroup(ctx context.Context, options CallOptions) (*Response, error) + func (service *GroupsService) ListGroups(ctx context.Context, options CallOptions) (*Response, error) + func (service *GroupsService) ReplaceGroupAccounts(ctx context.Context, options CallOptions) (*Response, error) + func (service *GroupsService) UpdateGroup(ctx context.Context, options CallOptions) (*Response, error) + type JobFailedError struct + Job map[string]any + func (e *JobFailedError) Error() string + type JobFetcher func(context.Context) (map[string]any, error) + type JobsService struct + func (service *JobsService) DeletePostEverywhere(ctx context.Context, options CallOptions) (*Response, error) + func (service *JobsService) GetPublicationJob(ctx context.Context, options CallOptions) (*Response, error) + func (service *JobsService) ListPublicationJobs(ctx context.Context, options CallOptions) (*Response, error) + func (service *JobsService) PublishPost(ctx context.Context, options CallOptions) (*Response, error) + func (service *JobsService) RetryPostTargets(ctx context.Context, options CallOptions) (*Response, error) + type MediaService struct + func (service *MediaService) DeleteMedia(ctx context.Context, options CallOptions) (*Response, error) + func (service *MediaService) GetMedia(ctx context.Context, options CallOptions) (*Response, error) + func (service *MediaService) GetMediaContent(ctx context.Context, options CallOptions) (*Response, error) + func (service *MediaService) GetSignedMediaContent(ctx context.Context, options CallOptions) (*Response, error) + func (service *MediaService) ListMedia(ctx context.Context, options CallOptions) (*Response, error) + func (service *MediaService) UploadMedia(ctx context.Context, options CallOptions) (*Response, error) + type MemoryReplayStore struct + func NewMemoryReplayStore(now func() time.Time) *MemoryReplayStore + func (store *MemoryReplayStore) Claim(ctx context.Context, eventID string, expiresAt time.Time) (bool, error) + type NetworksService struct + func (service *NetworksService) GetNetwork(ctx context.Context, options CallOptions) (*Response, error) + func (service *NetworksService) ListNetworks(ctx context.Context, options CallOptions) (*Response, error) + type Operation struct + Authenticated bool + Capabilities []string + Method string + Path string + RequestContentTypes []string + ResponseStatuses []string + Scopes []string + Tag string + type Page struct + Data []T + NextCursor *string + type PageFetcher func(context.Context, *string) (Page[T], error) + type Pager struct + func NewPager[T any](fetch PageFetcher[T], initialCursor *string) *Pager[T] + func (pager *Pager[T]) Next(ctx context.Context) (T, bool, error) + type PaginationError struct + Message string + func (e *PaginationError) Error() string + type PersonalTokensService struct + func (service *PersonalTokensService) CreatePersonalToken(ctx context.Context, options CallOptions) (*Response, error) + func (service *PersonalTokensService) GetPersonalToken(ctx context.Context, options CallOptions) (*Response, error) + func (service *PersonalTokensService) ListPersonalTokens(ctx context.Context, options CallOptions) (*Response, error) + func (service *PersonalTokensService) RevokePersonalToken(ctx context.Context, options CallOptions) (*Response, error) + func (service *PersonalTokensService) RotatePersonalToken(ctx context.Context, options CallOptions) (*Response, error) + func (service *PersonalTokensService) UpdatePersonalToken(ctx context.Context, options CallOptions) (*Response, error) + type PostsService struct + func (service *PostsService) CheckPostConstraints(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) CreatePostDraft(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) DeletePostDraft(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) GetPost(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) ListPosts(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) SchedulePost(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) UnschedulePost(ctx context.Context, options CallOptions) (*Response, error) + func (service *PostsService) UpdatePostDraft(ctx context.Context, options CallOptions) (*Response, error) + type PreconditionFailedError struct + type PreferencesService struct + func (service *PreferencesService) CreateContentTemplate(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) DeleteContentTemplate(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) GetContentTemplate(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) GetSignatures(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) ListContentTemplates(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) ReplaceSignatures(ctx context.Context, options CallOptions) (*Response, error) + func (service *PreferencesService) UpdateContentTemplate(ctx context.Context, options CallOptions) (*Response, error) + type ProfileService struct + func (service *ProfileService) ChangePassword(ctx context.Context, options CallOptions) (*Response, error) + func (service *ProfileService) DeleteMe(ctx context.Context, options CallOptions) (*Response, error) + func (service *ProfileService) GetMe(ctx context.Context, options CallOptions) (*Response, error) + func (service *ProfileService) UpdateMe(ctx context.Context, options CallOptions) (*Response, error) + type RateLimitError struct + type RedirectError struct + RequestID string + Status int + func (e *RedirectError) Error() string + type ReplayStore interface + Claim func(context.Context, string, time.Time) (bool, error) + type Response struct + Data any + ETag string + Headers http.Header + RequestID string + StatusCode int + type SDK struct + Accounts *AccountsService + Analytics *AnalyticsService + Audit *AuditService + Auth *AuthService + Calendar *CalendarService + Client *Client + Connections *ConnectionsService + Groups *GroupsService + Jobs *JobsService + Media *MediaService + Networks *NetworksService + PersonalTokens *PersonalTokensService + Posts *PostsService + Preferences *PreferencesService + Profile *ProfileService + Sessions *SessionsService + System *SystemService + Webhooks *WebhooksService + func New(options ...ClientOption) (*SDK, error) + func NewWithClient(client *Client) *SDK + type SessionsService struct + func (service *SessionsService) GetSession(ctx context.Context, options CallOptions) (*Response, error) + func (service *SessionsService) ListSessions(ctx context.Context, options CallOptions) (*Response, error) + func (service *SessionsService) RevokeSession(ctx context.Context, options CallOptions) (*Response, error) + type SystemService struct + func (service *SystemService) GetOpenAPI(ctx context.Context, options CallOptions) (*Response, error) + func (service *SystemService) Ping(ctx context.Context, options CallOptions) (*Response, error) + type TimeoutError struct + Cause error + Message string + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type TokenProvider func(context.Context) (string, error) + type TransportError struct + Cause error + Message string + func (e *TransportError) Error() string + func (e *TransportError) Unwrap() error + type WaitOptions struct + Now func() time.Time + PollInterval time.Duration + Sleeper func(context.Context, time.Duration) error + Timeout time.Duration + type WebhookVerificationOptions struct + Body []byte + EventID string + Now time.Time + ReplayStore ReplayStore + Secret string + Signature string + Timestamp string + Tolerance time.Duration + type WebhooksService struct + func (service *WebhooksService) CreateWebhook(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) DeleteWebhook(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) GetWebhook(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) GetWebhookDelivery(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) ListWebhookDeliveries(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) ListWebhooks(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) RetryWebhookDelivery(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) RotateWebhookSecret(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) TestWebhook(ctx context.Context, options CallOptions) (*Response, error) + func (service *WebhooksService) UpdateWebhook(ctx context.Context, options CallOptions) (*Response, error)