postboost 1.0.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CODE_OF_CONDUCT.md +7 -0
- data/CONTRIBUTING.md +31 -0
- data/README.md +252 -0
- data/SECURITY.md +9 -0
- data/docs/AIApi.md +871 -0
- data/docs/AICredits.md +22 -0
- data/docs/AIUsage.md +20 -0
- data/docs/AIUsageText.md +24 -0
- data/docs/Account.md +19 -9
- data/docs/AccountAnalytics.md +28 -0
- data/docs/AccountAnalyticsInitialSync.md +20 -0
- data/docs/AccountConnectionHealth.md +34 -0
- data/docs/AccountErrorsInner.md +49 -0
- data/docs/AccountErrorsInnerOneOf.md +24 -0
- data/docs/AccountGroup.md +24 -0
- data/docs/AccountGroupInput.md +20 -0
- data/docs/AccountGroupsApi.md +372 -0
- data/docs/AccountHealth.md +34 -0
- data/docs/AccountHealthDailyCap.md +20 -0
- data/docs/AccountSchedule.md +22 -0
- data/docs/AccountsApi.md +231 -5
- data/docs/ActivityApi.md +87 -0
- data/docs/AddCompetitor202Response.md +20 -0
- data/docs/AddCompetitor409Response.md +20 -0
- data/docs/AddPostToQueueRequest.md +18 -0
- data/docs/AgentPageMeta.md +24 -0
- data/docs/AgentProposal.md +44 -0
- data/docs/AgentProposalDecision.md +18 -0
- data/docs/AgentRun.md +44 -0
- data/docs/AgentsApi.md +745 -0
- data/docs/AnalyticsApi.md +899 -0
- data/docs/AnalyticsPeriod.md +24 -0
- data/docs/AnalyticsSummary.md +20 -0
- data/docs/AnalyticsSummaryData.md +38 -0
- data/docs/ApiActivity.md +36 -0
- data/docs/ApiActivityOutcome.md +15 -0
- data/docs/ApiKey.md +32 -0
- data/docs/ApiKeyAbility.md +15 -0
- data/docs/ApiKeyInput.md +24 -0
- data/docs/ApproveAgentProposal200Response.md +18 -0
- data/docs/ApproveAgentProposal409Response.md +20 -0
- data/docs/ApproveInboxReplyDraft403Response.md +20 -0
- data/docs/ApprovePostRequest.md +24 -0
- data/docs/BestPostingTimes.md +20 -0
- data/docs/BestPostingTimesTimesInner.md +24 -0
- data/docs/BlogToSocial200Response.md +20 -0
- data/docs/BlogToSocial429Response.md +18 -0
- data/docs/BlogToSocialCaption.md +28 -0
- data/docs/BlogToSocialInput.md +44 -0
- data/docs/BlogToSocialMedia.md +20 -0
- data/docs/BlogToSocialResponse.md +30 -0
- data/docs/BrandVoice.md +48 -0
- data/docs/BrandVoiceInput.md +46 -0
- data/docs/BrandVoiceMeta.md +18 -0
- data/docs/CancelSubscription422Response.md +20 -0
- data/docs/CancelSubscription422ResponseErrors.md +18 -0
- data/docs/CancelSubscriptionRequest.md +18 -0
- data/docs/ChannelAccount.md +36 -0
- data/docs/CodedError.md +22 -0
- data/docs/Competitor.md +34 -0
- data/docs/CompetitorDetail.md +38 -0
- data/docs/CompetitorInput.md +20 -0
- data/docs/CompetitorMedia.md +28 -0
- data/docs/CompetitorSnapshot.md +22 -0
- data/docs/CompetitorsApi.md +296 -0
- data/docs/CompleteChunkedUploadRequest.md +20 -0
- data/docs/ConnectChannelInput.md +24 -0
- data/docs/CreateAccountGroup201Response.md +18 -0
- data/docs/CreateAgent201Response.md +18 -0
- data/docs/CreateApiKey201Response.md +18 -0
- data/docs/CreateApiKey201ResponseData.md +34 -0
- data/docs/CreateHashtagGroup201Response.md +18 -0
- data/docs/CreateInboxReplyDraft201Response.md +18 -0
- data/docs/CreateMediaFolderRequest.md +20 -0
- data/docs/CreateMention201Response.md +18 -0
- data/docs/CreateRecyclingRule201Response.md +18 -0
- data/docs/CreateReportExport201Response.md +18 -0
- data/docs/CreateResellerClient201Response.md +18 -0
- data/docs/CreateRssFeed201Response.md +18 -0
- data/docs/CreateTemplate201Response.md +18 -0
- data/docs/CreateWebhookSubscription201Response.md +18 -0
- data/docs/CreateWebhookSubscription201ResponseData.md +30 -0
- data/docs/DeleteAgent200Response.md +18 -0
- data/docs/DeleteMediaBulkRequest.md +1 -1
- data/docs/DeleteMediaBulkRequestItemsInner.md +49 -0
- data/docs/DeleteMediaFolderRequest.md +18 -0
- data/docs/DeleteResult.md +3 -3
- data/docs/GetAccountHealth200Response.md +18 -0
- data/docs/GetBrandVoice200Response.md +18 -0
- data/docs/GetCompetitor200Response.md +18 -0
- data/docs/GetInboxConversation200Response.md +18 -0
- data/docs/GetPostingSchedule200Response.md +18 -0
- data/docs/GetReportBranding200Response.md +18 -0
- data/docs/GuardrailError.md +28 -0
- data/docs/HashtagGroup.md +22 -0
- data/docs/HashtagGroupInput.md +20 -0
- data/docs/HashtagGroupsApi.md +372 -0
- data/docs/ImageAltText200Response.md +18 -0
- data/docs/ImageAltTextInput.md +18 -0
- data/docs/ImageAltTextResponse.md +24 -0
- data/docs/ImageCreditBalance.md +28 -0
- data/docs/ImageEditInput.md +30 -0
- data/docs/ImageGenerate200Response.md +20 -0
- data/docs/ImageGenerate429Response.md +18 -0
- data/docs/ImageGenerateInput.md +38 -0
- data/docs/ImageGenerationResponse.md +30 -0
- data/docs/ImagePrompt200Response.md +20 -0
- data/docs/ImagePrompt429Response.md +18 -0
- data/docs/ImagePromptInput.md +30 -0
- data/docs/ImagePromptResponse.md +18 -0
- data/docs/ImageVariations200Response.md +18 -0
- data/docs/ImageVariationsInput.md +24 -0
- data/docs/ImageVariationsResponse.md +26 -0
- data/docs/InboxApi.md +758 -0
- data/docs/InboxAuthor.md +22 -0
- data/docs/InboxConversation.md +46 -0
- data/docs/InboxConversationAccount.md +24 -0
- data/docs/InboxConversationUpdate.md +20 -0
- data/docs/InboxMessage.md +32 -0
- data/docs/InboxMessageAuthor.md +22 -0
- data/docs/InboxReplyDraft.md +42 -0
- data/docs/InboxReplyDraftApprove.md +18 -0
- data/docs/InboxReplyDraftEdit.md +18 -0
- data/docs/InboxReplyDraftInput.md +20 -0
- data/docs/{InitiateChunkedUpload200Response.md → InitiateChunkedUpload201Response.md} +2 -2
- data/docs/{InitiateRemoteUpload200Response.md → InitiateRemoteUpload201Response.md} +7 -7
- data/docs/{InitiateRemoteUpload200ResponseOneOf.md → InitiateRemoteUpload201ResponseOneOf.md} +2 -2
- data/docs/InitiateRemoteUploadRequest.md +3 -1
- data/docs/LearnBrandVoiceInput.md +24 -0
- data/docs/LearnBrandVoiceResponse.md +20 -0
- data/docs/LearnBrandVoiceResponseMeta.md +26 -0
- data/docs/ListAccountGroups200Response.md +22 -0
- data/docs/ListAgentProposals200Response.md +20 -0
- data/docs/ListAgentRuns200Response.md +20 -0
- data/docs/ListAgents200Response.md +18 -0
- data/docs/ListApiActivity200Response.md +22 -0
- data/docs/ListApiKeys200Response.md +18 -0
- data/docs/ListCompetitors200Response.md +18 -0
- data/docs/ListHashtagGroups200Response.md +22 -0
- data/docs/ListInboxConversations200Response.md +22 -0
- data/docs/ListInboxReplyDrafts200Response.md +22 -0
- data/docs/ListMediaFolders200Response.md +18 -0
- data/docs/ListMentions200Response.md +22 -0
- data/docs/ListMyWorkspaces200Response.md +18 -0
- data/docs/ListRecyclingRules200Response.md +18 -0
- data/docs/ListRecyclingRuns200Response.md +18 -0
- data/docs/ListReportExports200Response.md +18 -0
- data/docs/ListResellerClients200Response.md +20 -0
- data/docs/ListRssFeeds200Response.md +18 -0
- data/docs/ListTemplates200Response.md +22 -0
- data/docs/ListWebhookSubscriptions200Response.md +18 -0
- data/docs/Media.md +22 -8
- data/docs/MediaApi.md +435 -31
- data/docs/MediaBase64Input.md +24 -0
- data/docs/MediaFolder.md +24 -0
- data/docs/MediaFolderInput.md +20 -0
- data/docs/MediaFolderRef.md +20 -0
- data/docs/Mention.md +28 -0
- data/docs/MentionIdentity.md +24 -0
- data/docs/MentionIdentityInput.md +26 -0
- data/docs/MentionInput.md +22 -0
- data/docs/MentionsApi.md +379 -0
- data/docs/MessageOnly.md +18 -0
- data/docs/PollRssFeed200Response.md +22 -0
- data/docs/Post.md +10 -8
- data/docs/PostAnalytics.md +22 -0
- data/docs/PostContent.md +1 -1
- data/docs/PostInput.md +8 -2
- data/docs/PostOptionsInstagram.md +22 -0
- data/docs/PostOptionsTikTok.md +34 -0
- data/docs/PostOptionsYoutube.md +24 -0
- data/docs/PostVersion.md +4 -2
- data/docs/PostVersionOptions.md +24 -0
- data/docs/PostingSchedule.md +28 -0
- data/docs/PostingScheduleApi.md +377 -0
- data/docs/PostingScheduleDay.md +22 -0
- data/docs/PostingScheduleDayTimesInner.md +18 -0
- data/docs/PostingScheduleInput.md +24 -0
- data/docs/PostingTimeSlot.md +22 -0
- data/docs/PostingTimes.md +32 -0
- data/docs/PostingTimesBestInner.md +24 -0
- data/docs/PostingTimesDayIntervalsInnerInner.md +28 -0
- data/docs/PostingTimesDaysInner.md +24 -0
- data/docs/PostsApi.md +1264 -82
- data/docs/PreflightResult.md +26 -0
- data/docs/PublicWorkspace.md +24 -0
- data/docs/PublicWorkspacePivot.md +22 -0
- data/docs/PublishProgress.md +22 -0
- data/docs/QueueSlots.md +20 -0
- data/docs/Receipt.md +8 -8
- data/docs/ReceiptsApi.md +15 -1
- data/docs/RecommendedPostingTimes.md +26 -0
- data/docs/ReconnectLink.md +22 -0
- data/docs/RecyclingRule.md +42 -0
- data/docs/RecyclingRuleInput.md +34 -0
- data/docs/RecyclingRuleSettings.md +28 -0
- data/docs/RecyclingRuleUpdate.md +28 -0
- data/docs/RecyclingRun.md +28 -0
- data/docs/RemoveGenericSubscription422Response.md +18 -0
- data/docs/ReportBranding.md +28 -0
- data/docs/ReportBrandingInput.md +24 -0
- data/docs/ReportExport.md +42 -0
- data/docs/ReportExportInput.md +28 -0
- data/docs/RepurposeContent200Response.md +20 -0
- data/docs/RepurposeInput.md +54 -0
- data/docs/RepurposeInputTheme.md +22 -0
- data/docs/RepurposeResult.md +32 -0
- data/docs/RepurposeResultMedia.md +20 -0
- data/docs/RepurposeResultSource.md +22 -0
- data/docs/RepurposeSlide.md +20 -0
- data/docs/ResellerClient.md +32 -0
- data/docs/ResellerClientInput.md +18 -0
- data/docs/ResellerClientUsage.md +20 -0
- data/docs/RetryPostAccountResult.md +22 -0
- data/docs/RssFeed.md +38 -0
- data/docs/RssFeedInput.md +30 -0
- data/docs/RssFeedUpdate.md +30 -0
- data/docs/RunAgent202Response.md +18 -0
- data/docs/SchedulePostRequest.md +9 -1
- data/docs/ScheduleResult.md +4 -2
- data/docs/Subscription.md +5 -5
- data/docs/SubscriptionsApi.md +27 -5
- data/docs/Tag.md +4 -4
- data/docs/TagsApi.md +18 -4
- data/docs/Template.md +22 -0
- data/docs/TemplateContentItem.md +20 -0
- data/docs/TemplateInput.md +20 -0
- data/docs/TemplateInputContentInner.md +20 -0
- data/docs/TemplatesApi.md +372 -0
- data/docs/UpdateMediaRequest.md +6 -2
- data/docs/{UploadChunk200Response.md → UploadChunk201Response.md} +2 -2
- data/docs/User.md +7 -5
- data/docs/UsersApi.md +15 -1
- data/docs/WebhookEventName.md +15 -0
- data/docs/WebhookEventPayload.md +20 -0
- data/docs/WebhookSubscription.md +28 -0
- data/docs/WebhookSubscriptionInput.md +24 -0
- data/docs/WebhooksApi.md +221 -0
- data/docs/Workspace.md +8 -6
- data/docs/WorkspaceAgent.md +34 -0
- data/docs/WorkspaceAgentInput.md +26 -0
- data/docs/WorkspaceAgentSettings.md +26 -0
- data/docs/WorkspaceAgentUpdate.md +24 -0
- data/docs/WorkspaceInput.md +1 -1
- data/docs/WorkspacesApi.md +582 -3
- data/docs/XUsage.md +28 -0
- data/docs/XUsageCounter.md +20 -0
- data/lib/postboost/api/account_groups_api.rb +395 -0
- data/lib/postboost/api/accounts_api.rb +233 -4
- data/lib/postboost/api/activity_api.rb +97 -0
- data/lib/postboost/api/agents_api.rb +771 -0
- data/lib/postboost/api/ai_api.rb +884 -0
- data/lib/postboost/api/analytics_api.rb +910 -0
- data/lib/postboost/api/competitors_api.rb +300 -0
- data/lib/postboost/api/hashtag_groups_api.rb +395 -0
- data/lib/postboost/api/inbox_api.rb +789 -0
- data/lib/postboost/api/media_api.rb +496 -24
- data/lib/postboost/api/mentions_api.rb +397 -0
- data/lib/postboost/api/posting_schedule_api.rb +389 -0
- data/lib/postboost/api/posts_api.rb +1321 -104
- data/lib/postboost/api/receipts_api.rb +17 -2
- data/lib/postboost/api/subscriptions_api.rb +28 -3
- data/lib/postboost/api/tags_api.rb +23 -2
- data/lib/postboost/api/templates_api.rb +395 -0
- data/lib/postboost/api/users_api.rb +17 -2
- data/lib/postboost/api/webhooks_api.rb +228 -0
- data/lib/postboost/api/workspaces_api.rb +545 -2
- data/lib/postboost/api_client.rb +2 -2
- data/lib/postboost/api_error.rb +2 -2
- data/lib/postboost/configuration.rb +2 -2
- data/lib/postboost/models/account.rb +145 -4
- data/lib/postboost/models/account_analytics.rb +308 -0
- data/lib/postboost/models/account_analytics_initial_sync.rb +231 -0
- data/lib/postboost/models/account_connection_health.rb +389 -0
- data/lib/postboost/models/account_errors_inner.rb +105 -0
- data/lib/postboost/models/account_errors_inner_one_of.rb +243 -0
- data/lib/postboost/models/account_group.rb +271 -0
- data/lib/postboost/models/account_group_input.rb +252 -0
- data/lib/postboost/models/account_health.rb +352 -0
- data/lib/postboost/models/account_health_daily_cap.rb +239 -0
- data/lib/postboost/models/account_schedule.rb +255 -0
- data/lib/postboost/models/add_competitor202_response.rb +271 -0
- data/lib/postboost/models/add_competitor409_response.rb +223 -0
- data/lib/postboost/models/add_generic_subscription_request.rb +2 -2
- data/lib/postboost/models/add_post_to_queue_request.rb +215 -0
- data/lib/postboost/models/agent_page_meta.rb +269 -0
- data/lib/postboost/models/agent_proposal.rb +444 -0
- data/lib/postboost/models/agent_proposal_decision.rb +233 -0
- data/lib/postboost/models/agent_run.rb +434 -0
- data/lib/postboost/models/ai_credits.rb +256 -0
- data/lib/postboost/models/ai_usage.rb +237 -0
- data/lib/postboost/models/ai_usage_text.rb +252 -0
- data/lib/postboost/models/analytics_period.rb +270 -0
- data/lib/postboost/models/analytics_summary.rb +237 -0
- data/lib/postboost/models/analytics_summary_data.rb +327 -0
- data/lib/postboost/models/api_activity.rb +359 -0
- data/lib/postboost/models/api_activity_outcome.rb +49 -0
- data/lib/postboost/models/api_key.rb +308 -0
- data/lib/postboost/models/api_key_ability.rb +43 -0
- data/lib/postboost/models/api_key_input.rb +316 -0
- data/lib/postboost/models/approve_agent_proposal200_response.rb +221 -0
- data/lib/postboost/models/approve_agent_proposal409_response.rb +237 -0
- data/lib/postboost/models/approve_inbox_reply_draft403_response.rb +264 -0
- data/lib/postboost/models/approve_post_request.rb +247 -0
- data/lib/postboost/models/best_posting_times.rb +240 -0
- data/lib/postboost/models/best_posting_times_times_inner.rb +269 -0
- data/lib/postboost/models/blog_to_social200_response.rb +223 -0
- data/lib/postboost/models/blog_to_social429_response.rb +214 -0
- data/lib/postboost/models/blog_to_social_caption.rb +265 -0
- data/lib/postboost/models/blog_to_social_input.rb +548 -0
- data/lib/postboost/models/blog_to_social_media.rb +226 -0
- data/lib/postboost/models/blog_to_social_response.rb +276 -0
- data/lib/postboost/models/brand_voice.rb +531 -0
- data/lib/postboost/models/brand_voice_input.rb +646 -0
- data/lib/postboost/models/brand_voice_meta.rb +222 -0
- data/lib/postboost/models/cancel_subscription422_response.rb +223 -0
- data/lib/postboost/models/cancel_subscription422_response_errors.rb +216 -0
- data/lib/postboost/models/cancel_subscription_request.rb +217 -0
- data/lib/postboost/models/change_subscription_plan_request.rb +2 -2
- data/lib/postboost/models/channel_account.rb +380 -0
- data/lib/postboost/models/checkout_subscription200_response.rb +2 -2
- data/lib/postboost/models/checkout_subscription_request.rb +2 -2
- data/lib/postboost/models/coded_error.rb +242 -0
- data/lib/postboost/models/competitor.rb +320 -0
- data/lib/postboost/models/competitor_detail.rb +358 -0
- data/lib/postboost/models/competitor_input.rb +258 -0
- data/lib/postboost/models/competitor_media.rb +263 -0
- data/lib/postboost/models/competitor_snapshot.rb +234 -0
- data/lib/postboost/models/complete_chunked_upload_request.rb +243 -0
- data/lib/postboost/models/connect_channel_input.rb +265 -0
- data/lib/postboost/models/create_account_group201_response.rb +221 -0
- data/lib/postboost/models/create_agent201_response.rb +221 -0
- data/lib/postboost/models/create_api_key201_response.rb +221 -0
- data/lib/postboost/models/create_api_key201_response_data.rb +327 -0
- data/lib/postboost/models/create_hashtag_group201_response.rb +221 -0
- data/lib/postboost/models/create_inbox_reply_draft201_response.rb +221 -0
- data/lib/postboost/models/create_media_folder_request.rb +258 -0
- data/lib/postboost/models/create_mention201_response.rb +214 -0
- data/lib/postboost/models/create_recycling_rule201_response.rb +221 -0
- data/lib/postboost/models/create_report_export201_response.rb +221 -0
- data/lib/postboost/models/create_reseller_client201_response.rb +221 -0
- data/lib/postboost/models/create_rss_feed201_response.rb +221 -0
- data/lib/postboost/models/create_template201_response.rb +221 -0
- data/lib/postboost/models/create_webhook_subscription201_response.rb +221 -0
- data/lib/postboost/models/create_webhook_subscription201_response_data.rb +320 -0
- data/lib/postboost/models/delete_agent200_response.rb +221 -0
- data/lib/postboost/models/delete_media_bulk_request.rb +23 -4
- data/lib/postboost/models/delete_media_bulk_request_items_inner.rb +105 -0
- data/lib/postboost/models/delete_media_folder_request.rb +216 -0
- data/lib/postboost/models/delete_mode.rb +2 -2
- data/lib/postboost/models/delete_post_request.rb +2 -2
- data/lib/postboost/models/delete_posts_bulk_request.rb +2 -2
- data/lib/postboost/models/delete_receipts_bulk_request.rb +2 -2
- data/lib/postboost/models/delete_result.rb +23 -2
- data/lib/postboost/models/delete_user400_response.rb +2 -2
- data/lib/postboost/models/delete_users_bulk_request.rb +2 -2
- data/lib/postboost/models/delete_workspaces_bulk_request.rb +2 -2
- data/lib/postboost/models/get_account_health200_response.rb +223 -0
- data/lib/postboost/models/get_brand_voice200_response.rb +217 -0
- data/lib/postboost/models/get_competitor200_response.rb +221 -0
- data/lib/postboost/models/get_inbox_conversation200_response.rb +221 -0
- data/lib/postboost/models/get_posting_schedule200_response.rb +221 -0
- data/lib/postboost/models/get_remote_upload_status200_response.rb +2 -2
- data/lib/postboost/models/get_report_branding200_response.rb +221 -0
- data/lib/postboost/models/guardrail_error.rb +304 -0
- data/lib/postboost/models/hashtag_group.rb +254 -0
- data/lib/postboost/models/hashtag_group_input.rb +275 -0
- data/lib/postboost/models/image_alt_text200_response.rb +221 -0
- data/lib/postboost/models/image_alt_text_input.rb +221 -0
- data/lib/postboost/models/image_alt_text_response.rb +262 -0
- data/lib/postboost/models/image_credit_balance.rb +295 -0
- data/lib/postboost/models/image_edit_input.rb +387 -0
- data/lib/postboost/models/image_generate200_response.rb +230 -0
- data/lib/postboost/models/image_generate429_response.rb +214 -0
- data/lib/postboost/models/image_generate_input.rb +479 -0
- data/lib/postboost/models/image_generation_response.rb +305 -0
- data/lib/postboost/models/image_prompt200_response.rb +230 -0
- data/lib/postboost/models/image_prompt429_response.rb +214 -0
- data/lib/postboost/models/image_prompt_input.rb +377 -0
- data/lib/postboost/models/image_prompt_response.rb +221 -0
- data/lib/postboost/models/image_variations200_response.rb +221 -0
- data/lib/postboost/models/image_variations_input.rb +328 -0
- data/lib/postboost/models/image_variations_response.rb +280 -0
- data/lib/postboost/models/inbox_author.rb +235 -0
- data/lib/postboost/models/inbox_conversation.rb +425 -0
- data/lib/postboost/models/inbox_conversation_account.rb +241 -0
- data/lib/postboost/models/inbox_conversation_update.rb +257 -0
- data/lib/postboost/models/inbox_message.rb +360 -0
- data/lib/postboost/models/inbox_message_author.rb +235 -0
- data/lib/postboost/models/inbox_reply_draft.rb +410 -0
- data/lib/postboost/models/inbox_reply_draft_approve.rb +215 -0
- data/lib/postboost/models/inbox_reply_draft_edit.rb +221 -0
- data/lib/postboost/models/inbox_reply_draft_input.rb +232 -0
- data/lib/postboost/models/{initiate_chunked_upload200_response.rb → initiate_chunked_upload201_response.rb} +5 -5
- data/lib/postboost/models/initiate_chunked_upload_request.rb +2 -2
- data/lib/postboost/models/{initiate_remote_upload200_response.rb → initiate_remote_upload201_response.rb} +4 -4
- data/lib/postboost/models/{initiate_remote_upload200_response_one_of.rb → initiate_remote_upload201_response_one_of.rb} +5 -5
- data/lib/postboost/models/initiate_remote_upload_request.rb +16 -6
- data/lib/postboost/models/learn_brand_voice_input.rb +300 -0
- data/lib/postboost/models/learn_brand_voice_response.rb +237 -0
- data/lib/postboost/models/learn_brand_voice_response_meta.rb +281 -0
- data/lib/postboost/models/list_account_groups200_response.rb +248 -0
- data/lib/postboost/models/list_accounts200_response.rb +2 -2
- data/lib/postboost/models/list_agent_proposals200_response.rb +239 -0
- data/lib/postboost/models/list_agent_runs200_response.rb +239 -0
- data/lib/postboost/models/list_agents200_response.rb +223 -0
- data/lib/postboost/models/list_api_activity200_response.rb +241 -0
- data/lib/postboost/models/list_api_keys200_response.rb +223 -0
- data/lib/postboost/models/list_competitors200_response.rb +223 -0
- data/lib/postboost/models/list_hashtag_groups200_response.rb +248 -0
- data/lib/postboost/models/list_inbox_conversations200_response.rb +241 -0
- data/lib/postboost/models/list_inbox_reply_drafts200_response.rb +241 -0
- data/lib/postboost/models/list_media200_response.rb +2 -2
- data/lib/postboost/models/list_media_folders200_response.rb +216 -0
- data/lib/postboost/models/list_mentions200_response.rb +241 -0
- data/lib/postboost/models/list_my_workspaces200_response.rb +216 -0
- data/lib/postboost/models/list_posts200_response.rb +2 -2
- data/lib/postboost/models/list_receipts200_response.rb +2 -2
- data/lib/postboost/models/list_recycling_rules200_response.rb +223 -0
- data/lib/postboost/models/list_recycling_runs200_response.rb +223 -0
- data/lib/postboost/models/list_report_exports200_response.rb +223 -0
- data/lib/postboost/models/list_reseller_clients200_response.rb +239 -0
- data/lib/postboost/models/list_rss_feeds200_response.rb +223 -0
- data/lib/postboost/models/list_tags200_response.rb +2 -2
- data/lib/postboost/models/list_templates200_response.rb +248 -0
- data/lib/postboost/models/list_users200_response.rb +2 -2
- data/lib/postboost/models/list_webhook_subscriptions200_response.rb +223 -0
- data/lib/postboost/models/list_workspaces200_response.rb +2 -2
- data/lib/postboost/models/media.rb +128 -3
- data/lib/postboost/models/media_base64_input.rb +295 -0
- data/lib/postboost/models/media_folder.rb +271 -0
- data/lib/postboost/models/media_folder_input.rb +244 -0
- data/lib/postboost/models/media_folder_ref.rb +237 -0
- data/lib/postboost/models/mention.rb +290 -0
- data/lib/postboost/models/mention_identity.rb +257 -0
- data/lib/postboost/models/mention_identity_input.rb +325 -0
- data/lib/postboost/models/mention_input.rb +279 -0
- data/lib/postboost/models/message_only.rb +221 -0
- data/lib/postboost/models/pagination_meta.rb +2 -2
- data/lib/postboost/models/pagination_meta_links.rb +4 -2
- data/lib/postboost/models/pagination_meta_meta.rb +4 -2
- data/lib/postboost/models/poll_rss_feed200_response.rb +255 -0
- data/lib/postboost/models/post.rb +69 -3
- data/lib/postboost/models/post_analytics.rb +252 -0
- data/lib/postboost/models/post_content.rb +4 -3
- data/lib/postboost/models/post_input.rb +41 -6
- data/lib/postboost/models/post_options_instagram.rb +294 -0
- data/lib/postboost/models/post_options_tik_tok.rb +329 -0
- data/lib/postboost/models/post_options_youtube.rb +302 -0
- data/lib/postboost/models/post_status.rb +6 -3
- data/lib/postboost/models/post_version.rb +53 -5
- data/lib/postboost/models/post_version_options.rb +242 -0
- data/lib/postboost/models/posting_schedule.rb +303 -0
- data/lib/postboost/models/posting_schedule_day.rb +285 -0
- data/lib/postboost/models/posting_schedule_day_times_inner.rb +222 -0
- data/lib/postboost/models/posting_schedule_input.rb +312 -0
- data/lib/postboost/models/posting_time_slot.rb +315 -0
- data/lib/postboost/models/posting_times.rb +362 -0
- data/lib/postboost/models/posting_times_best_inner.rb +269 -0
- data/lib/postboost/models/posting_times_day_intervals_inner_inner.rb +370 -0
- data/lib/postboost/models/posting_times_days_inner.rb +366 -0
- data/lib/postboost/models/preflight_result.rb +291 -0
- data/lib/postboost/models/public_workspace.rb +262 -0
- data/lib/postboost/models/public_workspace_pivot.rb +267 -0
- data/lib/postboost/models/publish_progress.rb +254 -0
- data/lib/postboost/models/queue_slots.rb +237 -0
- data/lib/postboost/models/receipt.rb +58 -2
- data/lib/postboost/models/receipt_input.rb +2 -2
- data/lib/postboost/models/receipt_update_input.rb +2 -2
- data/lib/postboost/models/recommended_posting_times.rb +282 -0
- data/lib/postboost/models/reconnect_link.rb +254 -0
- data/lib/postboost/models/recycling_rule.rb +434 -0
- data/lib/postboost/models/recycling_rule_input.rb +435 -0
- data/lib/postboost/models/recycling_rule_settings.rb +381 -0
- data/lib/postboost/models/recycling_rule_update.rb +366 -0
- data/lib/postboost/models/recycling_run.rb +320 -0
- data/lib/postboost/models/remove_generic_subscription422_response.rb +214 -0
- data/lib/postboost/models/remove_user_from_workspace_request.rb +2 -2
- data/lib/postboost/models/report_branding.rb +285 -0
- data/lib/postboost/models/report_branding_input.rb +293 -0
- data/lib/postboost/models/report_export.rb +442 -0
- data/lib/postboost/models/report_export_input.rb +350 -0
- data/lib/postboost/models/repurpose_content200_response.rb +237 -0
- data/lib/postboost/models/repurpose_input.rb +667 -0
- data/lib/postboost/models/repurpose_input_theme.rb +296 -0
- data/lib/postboost/models/repurpose_result.rb +328 -0
- data/lib/postboost/models/repurpose_result_media.rb +224 -0
- data/lib/postboost/models/repurpose_result_source.rb +283 -0
- data/lib/postboost/models/repurpose_slide.rb +239 -0
- data/lib/postboost/models/reseller_client.rb +360 -0
- data/lib/postboost/models/reseller_client_input.rb +240 -0
- data/lib/postboost/models/reseller_client_usage.rb +239 -0
- data/lib/postboost/models/retry_post_account_result.rb +275 -0
- data/lib/postboost/models/rss_feed.rb +402 -0
- data/lib/postboost/models/rss_feed_input.rb +433 -0
- data/lib/postboost/models/rss_feed_update.rb +396 -0
- data/lib/postboost/models/run_agent202_response.rb +221 -0
- data/lib/postboost/models/schedule_post_request.rb +48 -6
- data/lib/postboost/models/schedule_result.rb +23 -6
- data/lib/postboost/models/subscription.rb +37 -2
- data/lib/postboost/models/subscription_input.rb +2 -2
- data/lib/postboost/models/subscription_status.rb +2 -2
- data/lib/postboost/models/subscription_update_input.rb +2 -2
- data/lib/postboost/models/tag.rb +30 -2
- data/lib/postboost/models/tag_input.rb +2 -2
- data/lib/postboost/models/template.rb +256 -0
- data/lib/postboost/models/template_content_item.rb +240 -0
- data/lib/postboost/models/template_input.rb +271 -0
- data/lib/postboost/models/template_input_content_inner.rb +227 -0
- data/lib/postboost/models/update_media_request.rb +61 -11
- data/lib/postboost/models/{upload_chunk200_response.rb → upload_chunk201_response.rb} +5 -5
- data/lib/postboost/models/user.rb +48 -3
- data/lib/postboost/models/user_input.rb +2 -2
- data/lib/postboost/models/user_update_input.rb +2 -2
- data/lib/postboost/models/webhook_event_name.rb +50 -0
- data/lib/postboost/models/webhook_event_payload.rb +262 -0
- data/lib/postboost/models/webhook_subscription.rb +297 -0
- data/lib/postboost/models/webhook_subscription_input.rb +349 -0
- data/lib/postboost/models/workspace.rb +42 -3
- data/lib/postboost/models/workspace_agent.rb +381 -0
- data/lib/postboost/models/workspace_agent_input.rb +326 -0
- data/lib/postboost/models/workspace_agent_settings.rb +340 -0
- data/lib/postboost/models/workspace_agent_update.rb +294 -0
- data/lib/postboost/models/workspace_input.rb +3 -9
- data/lib/postboost/models/workspace_user_input.rb +2 -2
- data/lib/postboost/models/x_usage.rb +303 -0
- data/lib/postboost/models/x_usage_counter.rb +234 -0
- data/lib/postboost/version.rb +3 -3
- data/lib/postboost.rb +219 -6
- data/postboost.gemspec +3 -3
- data/spec/api/account_groups_api_spec.rb +102 -0
- data/spec/api/accounts_api_spec.rb +46 -3
- data/spec/api/activity_api_spec.rb +51 -0
- data/spec/api/agents_api_spec.rb +170 -0
- data/spec/api/ai_api_spec.rb +189 -0
- data/spec/api/analytics_api_spec.rb +201 -0
- data/spec/api/competitors_api_spec.rb +87 -0
- data/spec/api/hashtag_groups_api_spec.rb +102 -0
- data/spec/api/inbox_api_spec.rb +178 -0
- data/spec/api/media_api_spec.rb +92 -11
- data/spec/api/mentions_api_spec.rb +104 -0
- data/spec/api/posting_schedule_api_spec.rb +102 -0
- data/spec/api/posts_api_spec.rb +224 -6
- data/spec/api/receipts_api_spec.rb +9 -2
- data/spec/api/subscriptions_api_spec.rb +12 -2
- data/spec/api/tags_api_spec.rb +8 -2
- data/spec/api/templates_api_spec.rb +102 -0
- data/spec/api/users_api_spec.rb +9 -2
- data/spec/api/webhooks_api_spec.rb +73 -0
- data/spec/api/workspaces_api_spec.rb +108 -2
- data/spec/models/account_analytics_initial_sync_spec.rb +42 -0
- data/spec/models/account_analytics_spec.rb +66 -0
- data/spec/models/account_connection_health_spec.rb +92 -0
- data/spec/models/account_errors_inner_one_of_spec.rb +54 -0
- data/spec/models/account_errors_inner_spec.rb +32 -0
- data/spec/models/account_group_input_spec.rb +42 -0
- data/spec/models/account_group_spec.rb +54 -0
- data/spec/models/account_health_daily_cap_spec.rb +42 -0
- data/spec/models/account_health_spec.rb +84 -0
- data/spec/models/account_schedule_spec.rb +48 -0
- data/spec/models/account_spec.rb +36 -2
- data/spec/models/add_competitor202_response_spec.rb +46 -0
- data/spec/models/add_competitor409_response_spec.rb +42 -0
- data/spec/models/add_generic_subscription_request_spec.rb +2 -2
- data/spec/models/add_post_to_queue_request_spec.rb +36 -0
- data/spec/models/agent_page_meta_spec.rb +54 -0
- data/spec/models/agent_proposal_decision_spec.rb +36 -0
- data/spec/models/agent_proposal_spec.rb +126 -0
- data/spec/models/agent_run_spec.rb +122 -0
- data/spec/models/ai_credits_spec.rb +48 -0
- data/spec/models/ai_usage_spec.rb +42 -0
- data/spec/models/ai_usage_text_spec.rb +54 -0
- data/spec/models/analytics_period_spec.rb +54 -0
- data/spec/models/analytics_summary_data_spec.rb +96 -0
- data/spec/models/analytics_summary_spec.rb +42 -0
- data/spec/models/api_activity_outcome_spec.rb +30 -0
- data/spec/models/api_activity_spec.rb +90 -0
- data/spec/models/api_key_ability_spec.rb +30 -0
- data/spec/models/api_key_input_spec.rb +54 -0
- data/spec/models/api_key_spec.rb +78 -0
- data/spec/models/approve_agent_proposal200_response_spec.rb +36 -0
- data/spec/models/approve_agent_proposal409_response_spec.rb +42 -0
- data/spec/models/approve_inbox_reply_draft403_response_spec.rb +46 -0
- data/spec/models/approve_post_request_spec.rb +54 -0
- data/spec/models/best_posting_times_spec.rb +42 -0
- data/spec/models/best_posting_times_times_inner_spec.rb +54 -0
- data/spec/models/blog_to_social200_response_spec.rb +42 -0
- data/spec/models/blog_to_social429_response_spec.rb +36 -0
- data/spec/models/blog_to_social_caption_spec.rb +66 -0
- data/spec/models/blog_to_social_input_spec.rb +134 -0
- data/spec/models/blog_to_social_media_spec.rb +42 -0
- data/spec/models/blog_to_social_response_spec.rb +72 -0
- data/spec/models/brand_voice_input_spec.rb +128 -0
- data/spec/models/brand_voice_meta_spec.rb +36 -0
- data/spec/models/brand_voice_spec.rb +134 -0
- data/spec/models/cancel_subscription422_response_errors_spec.rb +36 -0
- data/spec/models/cancel_subscription422_response_spec.rb +42 -0
- data/spec/models/cancel_subscription_request_spec.rb +36 -0
- data/spec/models/change_subscription_plan_request_spec.rb +2 -2
- data/spec/models/channel_account_spec.rb +94 -0
- data/spec/models/checkout_subscription200_response_spec.rb +2 -2
- data/spec/models/checkout_subscription_request_spec.rb +2 -2
- data/spec/models/coded_error_spec.rb +48 -0
- data/spec/models/competitor_detail_spec.rb +96 -0
- data/spec/models/competitor_input_spec.rb +42 -0
- data/spec/models/competitor_media_spec.rb +66 -0
- data/spec/models/competitor_snapshot_spec.rb +48 -0
- data/spec/models/competitor_spec.rb +84 -0
- data/spec/models/complete_chunked_upload_request_spec.rb +42 -0
- data/spec/models/connect_channel_input_spec.rb +54 -0
- data/spec/models/create_account_group201_response_spec.rb +36 -0
- data/spec/models/create_agent201_response_spec.rb +36 -0
- data/spec/models/create_api_key201_response_data_spec.rb +84 -0
- data/spec/models/create_api_key201_response_spec.rb +36 -0
- data/spec/models/create_hashtag_group201_response_spec.rb +36 -0
- data/spec/models/create_inbox_reply_draft201_response_spec.rb +36 -0
- data/spec/models/create_media_folder_request_spec.rb +42 -0
- data/spec/models/create_mention201_response_spec.rb +36 -0
- data/spec/models/create_recycling_rule201_response_spec.rb +36 -0
- data/spec/models/create_report_export201_response_spec.rb +36 -0
- data/spec/models/create_reseller_client201_response_spec.rb +36 -0
- data/spec/models/create_rss_feed201_response_spec.rb +36 -0
- data/spec/models/create_template201_response_spec.rb +36 -0
- data/spec/models/create_webhook_subscription201_response_data_spec.rb +72 -0
- data/spec/models/create_webhook_subscription201_response_spec.rb +36 -0
- data/spec/models/delete_agent200_response_spec.rb +36 -0
- data/spec/models/delete_media_bulk_request_items_inner_spec.rb +32 -0
- data/spec/models/delete_media_bulk_request_spec.rb +2 -2
- data/spec/models/delete_media_folder_request_spec.rb +36 -0
- data/spec/models/delete_mode_spec.rb +2 -2
- data/spec/models/delete_post_request_spec.rb +2 -2
- data/spec/models/delete_posts_bulk_request_spec.rb +2 -2
- data/spec/models/delete_receipts_bulk_request_spec.rb +2 -2
- data/spec/models/delete_result_spec.rb +2 -2
- data/spec/models/delete_user400_response_spec.rb +2 -2
- data/spec/models/delete_users_bulk_request_spec.rb +2 -2
- data/spec/models/delete_workspaces_bulk_request_spec.rb +2 -2
- data/spec/models/get_account_health200_response_spec.rb +36 -0
- data/spec/models/get_brand_voice200_response_spec.rb +36 -0
- data/spec/models/get_competitor200_response_spec.rb +36 -0
- data/spec/models/get_inbox_conversation200_response_spec.rb +36 -0
- data/spec/models/get_posting_schedule200_response_spec.rb +36 -0
- data/spec/models/get_remote_upload_status200_response_spec.rb +2 -2
- data/spec/models/get_report_branding200_response_spec.rb +36 -0
- data/spec/models/guardrail_error_spec.rb +70 -0
- data/spec/models/hashtag_group_input_spec.rb +42 -0
- data/spec/models/hashtag_group_spec.rb +48 -0
- data/spec/models/image_alt_text200_response_spec.rb +36 -0
- data/spec/models/image_alt_text_input_spec.rb +36 -0
- data/spec/models/image_alt_text_response_spec.rb +54 -0
- data/spec/models/image_credit_balance_spec.rb +66 -0
- data/spec/models/image_edit_input_spec.rb +80 -0
- data/spec/models/image_generate200_response_spec.rb +42 -0
- data/spec/models/image_generate429_response_spec.rb +36 -0
- data/spec/models/image_generate_input_spec.rb +108 -0
- data/spec/models/image_generation_response_spec.rb +72 -0
- data/spec/models/image_prompt200_response_spec.rb +42 -0
- data/spec/models/image_prompt429_response_spec.rb +36 -0
- data/spec/models/image_prompt_input_spec.rb +76 -0
- data/spec/models/image_prompt_response_spec.rb +36 -0
- data/spec/models/image_variations200_response_spec.rb +36 -0
- data/spec/models/image_variations_input_spec.rb +62 -0
- data/spec/models/image_variations_response_spec.rb +60 -0
- data/spec/models/inbox_author_spec.rb +48 -0
- data/spec/models/inbox_conversation_account_spec.rb +54 -0
- data/spec/models/inbox_conversation_spec.rb +128 -0
- data/spec/models/inbox_conversation_update_spec.rb +46 -0
- data/spec/models/inbox_message_author_spec.rb +48 -0
- data/spec/models/inbox_message_spec.rb +90 -0
- data/spec/models/inbox_reply_draft_approve_spec.rb +36 -0
- data/spec/models/inbox_reply_draft_edit_spec.rb +36 -0
- data/spec/models/inbox_reply_draft_input_spec.rb +42 -0
- data/spec/models/inbox_reply_draft_spec.rb +116 -0
- data/spec/models/initiate_chunked_upload201_response_spec.rb +48 -0
- data/spec/models/initiate_chunked_upload_request_spec.rb +2 -2
- data/spec/models/initiate_remote_upload201_response_one_of_spec.rb +36 -0
- data/spec/models/initiate_remote_upload201_response_spec.rb +32 -0
- data/spec/models/initiate_remote_upload_request_spec.rb +8 -2
- data/spec/models/learn_brand_voice_input_spec.rb +54 -0
- data/spec/models/learn_brand_voice_response_meta_spec.rb +60 -0
- data/spec/models/learn_brand_voice_response_spec.rb +42 -0
- data/spec/models/list_account_groups200_response_spec.rb +48 -0
- data/spec/models/list_accounts200_response_spec.rb +2 -2
- data/spec/models/list_agent_proposals200_response_spec.rb +42 -0
- data/spec/models/list_agent_runs200_response_spec.rb +42 -0
- data/spec/models/list_agents200_response_spec.rb +36 -0
- data/spec/models/list_api_activity200_response_spec.rb +48 -0
- data/spec/models/list_api_keys200_response_spec.rb +36 -0
- data/spec/models/list_competitors200_response_spec.rb +36 -0
- data/spec/models/list_hashtag_groups200_response_spec.rb +48 -0
- data/spec/models/list_inbox_conversations200_response_spec.rb +48 -0
- data/spec/models/list_inbox_reply_drafts200_response_spec.rb +48 -0
- data/spec/models/list_media200_response_spec.rb +2 -2
- data/spec/models/list_media_folders200_response_spec.rb +36 -0
- data/spec/models/list_mentions200_response_spec.rb +48 -0
- data/spec/models/list_my_workspaces200_response_spec.rb +36 -0
- data/spec/models/list_posts200_response_spec.rb +2 -2
- data/spec/models/list_receipts200_response_spec.rb +2 -2
- data/spec/models/list_recycling_rules200_response_spec.rb +36 -0
- data/spec/models/list_recycling_runs200_response_spec.rb +36 -0
- data/spec/models/list_report_exports200_response_spec.rb +36 -0
- data/spec/models/list_reseller_clients200_response_spec.rb +42 -0
- data/spec/models/list_rss_feeds200_response_spec.rb +36 -0
- data/spec/models/list_tags200_response_spec.rb +2 -2
- data/spec/models/list_templates200_response_spec.rb +48 -0
- data/spec/models/list_users200_response_spec.rb +2 -2
- data/spec/models/list_webhook_subscriptions200_response_spec.rb +36 -0
- data/spec/models/list_workspaces200_response_spec.rb +2 -2
- data/spec/models/media_base64_input_spec.rb +54 -0
- data/spec/models/media_folder_input_spec.rb +42 -0
- data/spec/models/media_folder_ref_spec.rb +42 -0
- data/spec/models/media_folder_spec.rb +54 -0
- data/spec/models/media_spec.rb +44 -2
- data/spec/models/mention_identity_input_spec.rb +60 -0
- data/spec/models/mention_identity_spec.rb +54 -0
- data/spec/models/mention_input_spec.rb +48 -0
- data/spec/models/mention_spec.rb +66 -0
- data/spec/models/message_only_spec.rb +36 -0
- data/spec/models/pagination_meta_links_spec.rb +2 -2
- data/spec/models/pagination_meta_meta_spec.rb +2 -2
- data/spec/models/pagination_meta_spec.rb +2 -2
- data/spec/models/poll_rss_feed200_response_spec.rb +48 -0
- data/spec/models/post_analytics_spec.rb +48 -0
- data/spec/models/post_content_spec.rb +2 -2
- data/spec/models/post_input_spec.rb +20 -2
- data/spec/models/post_options_instagram_spec.rb +52 -0
- data/spec/models/post_options_tik_tok_spec.rb +88 -0
- data/spec/models/post_options_youtube_spec.rb +58 -0
- data/spec/models/post_spec.rb +8 -2
- data/spec/models/post_status_spec.rb +2 -2
- data/spec/models/post_version_options_spec.rb +54 -0
- data/spec/models/post_version_spec.rb +8 -2
- data/spec/models/posting_schedule_day_spec.rb +48 -0
- data/spec/models/posting_schedule_day_times_inner_spec.rb +36 -0
- data/spec/models/posting_schedule_input_spec.rb +54 -0
- data/spec/models/posting_schedule_spec.rb +66 -0
- data/spec/models/posting_time_slot_spec.rb +52 -0
- data/spec/models/posting_times_best_inner_spec.rb +54 -0
- data/spec/models/posting_times_day_intervals_inner_inner_spec.rb +70 -0
- data/spec/models/posting_times_days_inner_spec.rb +58 -0
- data/spec/models/posting_times_spec.rb +78 -0
- data/spec/models/preflight_result_spec.rb +60 -0
- data/spec/models/public_workspace_pivot_spec.rb +52 -0
- data/spec/models/public_workspace_spec.rb +54 -0
- data/spec/models/publish_progress_spec.rb +48 -0
- data/spec/models/queue_slots_spec.rb +42 -0
- data/spec/models/receipt_input_spec.rb +2 -2
- data/spec/models/receipt_spec.rb +2 -2
- data/spec/models/receipt_update_input_spec.rb +2 -2
- data/spec/models/recommended_posting_times_spec.rb +60 -0
- data/spec/models/reconnect_link_spec.rb +48 -0
- data/spec/models/recycling_rule_input_spec.rb +92 -0
- data/spec/models/recycling_rule_settings_spec.rb +70 -0
- data/spec/models/recycling_rule_spec.rb +116 -0
- data/spec/models/recycling_rule_update_spec.rb +70 -0
- data/spec/models/recycling_run_spec.rb +70 -0
- data/spec/models/remove_generic_subscription422_response_spec.rb +36 -0
- data/spec/models/remove_user_from_workspace_request_spec.rb +2 -2
- data/spec/models/report_branding_input_spec.rb +54 -0
- data/spec/models/report_branding_spec.rb +66 -0
- data/spec/models/report_export_input_spec.rb +78 -0
- data/spec/models/report_export_spec.rb +120 -0
- data/spec/models/repurpose_content200_response_spec.rb +42 -0
- data/spec/models/repurpose_input_spec.rb +164 -0
- data/spec/models/repurpose_input_theme_spec.rb +48 -0
- data/spec/models/repurpose_result_media_spec.rb +42 -0
- data/spec/models/repurpose_result_source_spec.rb +52 -0
- data/spec/models/repurpose_result_spec.rb +78 -0
- data/spec/models/repurpose_slide_spec.rb +42 -0
- data/spec/models/reseller_client_input_spec.rb +36 -0
- data/spec/models/reseller_client_spec.rb +82 -0
- data/spec/models/reseller_client_usage_spec.rb +42 -0
- data/spec/models/retry_post_account_result_spec.rb +48 -0
- data/spec/models/rss_feed_input_spec.rb +76 -0
- data/spec/models/rss_feed_spec.rb +100 -0
- data/spec/models/rss_feed_update_spec.rb +76 -0
- data/spec/models/run_agent202_response_spec.rb +36 -0
- data/spec/models/schedule_post_request_spec.rb +26 -2
- data/spec/models/schedule_result_spec.rb +8 -2
- data/spec/models/subscription_input_spec.rb +2 -2
- data/spec/models/subscription_spec.rb +2 -2
- data/spec/models/subscription_status_spec.rb +2 -2
- data/spec/models/subscription_update_input_spec.rb +2 -2
- data/spec/models/tag_input_spec.rb +2 -2
- data/spec/models/tag_spec.rb +2 -2
- data/spec/models/template_content_item_spec.rb +42 -0
- data/spec/models/template_input_content_inner_spec.rb +42 -0
- data/spec/models/template_input_spec.rb +42 -0
- data/spec/models/template_spec.rb +48 -0
- data/spec/models/update_media_request_spec.rb +14 -2
- data/spec/models/upload_chunk201_response_spec.rb +36 -0
- data/spec/models/user_input_spec.rb +2 -2
- data/spec/models/user_spec.rb +8 -2
- data/spec/models/user_update_input_spec.rb +2 -2
- data/spec/models/webhook_event_name_spec.rb +30 -0
- data/spec/models/webhook_event_payload_spec.rb +42 -0
- data/spec/models/webhook_subscription_input_spec.rb +58 -0
- data/spec/models/webhook_subscription_spec.rb +66 -0
- data/spec/models/workspace_agent_input_spec.rb +68 -0
- data/spec/models/workspace_agent_settings_spec.rb +60 -0
- data/spec/models/workspace_agent_spec.rb +92 -0
- data/spec/models/workspace_agent_update_spec.rb +58 -0
- data/spec/models/workspace_input_spec.rb +2 -2
- data/spec/models/workspace_spec.rb +8 -2
- data/spec/models/workspace_user_input_spec.rb +2 -2
- data/spec/models/x_usage_counter_spec.rb +42 -0
- data/spec/models/x_usage_spec.rb +66 -0
- data/spec/spec_helper.rb +2 -2
- metadata +943 -76
- data/git_push.sh +0 -57
- data/spec/models/initiate_chunked_upload200_response_spec.rb +0 -48
- data/spec/models/initiate_remote_upload200_response_one_of_spec.rb +0 -36
- data/spec/models/initiate_remote_upload200_response_spec.rb +0 -32
- data/spec/models/upload_chunk200_response_spec.rb +0 -36
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
# PostBoost::AnalyticsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://postboost.co/app/api*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_report_export**](AnalyticsApi.md#create_report_export) | **POST** /{workspaceUuid}/reports/exports | Create a report export |
|
|
8
|
+
| [**download_report_export**](AnalyticsApi.md#download_report_export) | **GET** /{workspaceUuid}/reports/exports/{exportUuid}/download | Download a report file |
|
|
9
|
+
| [**get_account_analytics**](AnalyticsApi.md#get_account_analytics) | **GET** /{workspaceUuid}/analytics/accounts/{accountUuid} | Get account analytics |
|
|
10
|
+
| [**get_analytics_summary**](AnalyticsApi.md#get_analytics_summary) | **GET** /{workspaceUuid}/analytics | Get analytics summary |
|
|
11
|
+
| [**get_best_posting_times**](AnalyticsApi.md#get_best_posting_times) | **GET** /{workspaceUuid}/analytics/best-times | Get best posting times |
|
|
12
|
+
| [**get_post_analytics_0**](AnalyticsApi.md#get_post_analytics_0) | **GET** /{workspaceUuid}/posts/{postUuid}/analytics | Get post analytics |
|
|
13
|
+
| [**get_posting_times**](AnalyticsApi.md#get_posting_times) | **GET** /{workspaceUuid}/analytics/posting-times | Get posting times heatmap |
|
|
14
|
+
| [**get_report_branding**](AnalyticsApi.md#get_report_branding) | **GET** /{workspaceUuid}/report-branding | Get the report branding |
|
|
15
|
+
| [**get_report_export**](AnalyticsApi.md#get_report_export) | **GET** /{workspaceUuid}/reports/exports/{exportUuid} | Get a report export |
|
|
16
|
+
| [**list_report_exports**](AnalyticsApi.md#list_report_exports) | **GET** /{workspaceUuid}/reports/exports | List report exports |
|
|
17
|
+
| [**update_report_branding**](AnalyticsApi.md#update_report_branding) | **PUT** /{workspaceUuid}/report-branding | Update the report branding |
|
|
18
|
+
| [**upload_report_branding_logo**](AnalyticsApi.md#upload_report_branding_logo) | **POST** /{workspaceUuid}/report-branding/logo | Upload the report logo |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## create_report_export
|
|
22
|
+
|
|
23
|
+
> <CreateReportExport201Response> create_report_export(workspace_uuid, report_export_input)
|
|
24
|
+
|
|
25
|
+
Create a report export
|
|
26
|
+
|
|
27
|
+
Generates a report for a period (default `last_month`) or a custom `date_from`/`date_to` range: a branded PDF (summary, accounts, top 10 posts; the header uses the report branding) or a CSV with one row per published post and account (`dataset: posts`, default) or per account (`dataset: accounts`). CSV files are UTF-8 with a byte order mark. At most 500 posts per report. The file is ready when the call returns; fetch it from `download_url` with the same token. Admins and members only; 20 per minute.
|
|
28
|
+
|
|
29
|
+
### Examples
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'time'
|
|
33
|
+
require 'postboost'
|
|
34
|
+
# setup authorization
|
|
35
|
+
PostBoost.configure do |config|
|
|
36
|
+
# Configure Bearer authorization: bearerAuth
|
|
37
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
41
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
42
|
+
report_export_input = PostBoost::ReportExportInput.new({format: 'csv'}) # ReportExportInput |
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
# Create a report export
|
|
46
|
+
result = api_instance.create_report_export(workspace_uuid, report_export_input)
|
|
47
|
+
p result
|
|
48
|
+
rescue PostBoost::ApiError => e
|
|
49
|
+
puts "Error when calling AnalyticsApi->create_report_export: #{e}"
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Using the create_report_export_with_http_info variant
|
|
54
|
+
|
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
|
56
|
+
|
|
57
|
+
> <Array(<CreateReportExport201Response>, Integer, Hash)> create_report_export_with_http_info(workspace_uuid, report_export_input)
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
begin
|
|
61
|
+
# Create a report export
|
|
62
|
+
data, status_code, headers = api_instance.create_report_export_with_http_info(workspace_uuid, report_export_input)
|
|
63
|
+
p status_code # => 2xx
|
|
64
|
+
p headers # => { ... }
|
|
65
|
+
p data # => <CreateReportExport201Response>
|
|
66
|
+
rescue PostBoost::ApiError => e
|
|
67
|
+
puts "Error when calling AnalyticsApi->create_report_export_with_http_info: #{e}"
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Type | Description | Notes |
|
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
|
75
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
76
|
+
| **report_export_input** | [**ReportExportInput**](ReportExportInput.md) | | |
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
[**CreateReportExport201Response**](CreateReportExport201Response.md)
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: application/json
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## download_report_export
|
|
93
|
+
|
|
94
|
+
> File download_report_export(workspace_uuid, export_uuid)
|
|
95
|
+
|
|
96
|
+
Download a report file
|
|
97
|
+
|
|
98
|
+
The PDF or CSV file. `410` once it expired (7 days) or if the export failed.
|
|
99
|
+
|
|
100
|
+
### Examples
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
require 'time'
|
|
104
|
+
require 'postboost'
|
|
105
|
+
# setup authorization
|
|
106
|
+
PostBoost.configure do |config|
|
|
107
|
+
# Configure Bearer authorization: bearerAuth
|
|
108
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
112
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
113
|
+
export_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the report export.
|
|
114
|
+
|
|
115
|
+
begin
|
|
116
|
+
# Download a report file
|
|
117
|
+
result = api_instance.download_report_export(workspace_uuid, export_uuid)
|
|
118
|
+
p result
|
|
119
|
+
rescue PostBoost::ApiError => e
|
|
120
|
+
puts "Error when calling AnalyticsApi->download_report_export: #{e}"
|
|
121
|
+
end
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### Using the download_report_export_with_http_info variant
|
|
125
|
+
|
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
|
127
|
+
|
|
128
|
+
> <Array(File, Integer, Hash)> download_report_export_with_http_info(workspace_uuid, export_uuid)
|
|
129
|
+
|
|
130
|
+
```ruby
|
|
131
|
+
begin
|
|
132
|
+
# Download a report file
|
|
133
|
+
data, status_code, headers = api_instance.download_report_export_with_http_info(workspace_uuid, export_uuid)
|
|
134
|
+
p status_code # => 2xx
|
|
135
|
+
p headers # => { ... }
|
|
136
|
+
p data # => File
|
|
137
|
+
rescue PostBoost::ApiError => e
|
|
138
|
+
puts "Error when calling AnalyticsApi->download_report_export_with_http_info: #{e}"
|
|
139
|
+
end
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
| Name | Type | Description | Notes |
|
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
|
146
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
147
|
+
| **export_uuid** | **String** | UUID of the report export. | |
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**File**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/pdf, text/csv, application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
## get_account_analytics
|
|
164
|
+
|
|
165
|
+
> <AccountAnalytics> get_account_analytics(workspace_uuid, account_uuid, opts)
|
|
166
|
+
|
|
167
|
+
Get account analytics
|
|
168
|
+
|
|
169
|
+
Analytics for one account. `type` selects one of the tabs the account supports (listed in `tabs` of the response); returns `422` when the account does not support analytics.
|
|
170
|
+
|
|
171
|
+
### Examples
|
|
172
|
+
|
|
173
|
+
```ruby
|
|
174
|
+
require 'time'
|
|
175
|
+
require 'postboost'
|
|
176
|
+
# setup authorization
|
|
177
|
+
PostBoost.configure do |config|
|
|
178
|
+
# Configure Bearer authorization: bearerAuth
|
|
179
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
183
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
184
|
+
account_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the social media account.
|
|
185
|
+
opts = {
|
|
186
|
+
period: 'this_week', # String | Preset reporting period. Ignored when `date_from` and `date_to` are given.
|
|
187
|
+
date_from: Date.parse('2013-10-20'), # Date | Start of a custom range (Y-m-d). Required with `date_to`; the range may span at most 366 days.
|
|
188
|
+
date_to: Date.parse('2013-10-20'), # Date | End of a custom range (Y-m-d). Required with `date_from`; must not be before it.
|
|
189
|
+
type: 'type_example', # String | Analytics tab. Defaults to the account's default tab.
|
|
190
|
+
page: 56, # Integer | Page for list-style tabs (for example per-post metrics).
|
|
191
|
+
per_page: 56, # Integer |
|
|
192
|
+
sort_by: 'sort_by_example', # String |
|
|
193
|
+
sort_dir: 'asc' # String |
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
begin
|
|
197
|
+
# Get account analytics
|
|
198
|
+
result = api_instance.get_account_analytics(workspace_uuid, account_uuid, opts)
|
|
199
|
+
p result
|
|
200
|
+
rescue PostBoost::ApiError => e
|
|
201
|
+
puts "Error when calling AnalyticsApi->get_account_analytics: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
#### Using the get_account_analytics_with_http_info variant
|
|
206
|
+
|
|
207
|
+
This returns an Array which contains the response data, status code and headers.
|
|
208
|
+
|
|
209
|
+
> <Array(<AccountAnalytics>, Integer, Hash)> get_account_analytics_with_http_info(workspace_uuid, account_uuid, opts)
|
|
210
|
+
|
|
211
|
+
```ruby
|
|
212
|
+
begin
|
|
213
|
+
# Get account analytics
|
|
214
|
+
data, status_code, headers = api_instance.get_account_analytics_with_http_info(workspace_uuid, account_uuid, opts)
|
|
215
|
+
p status_code # => 2xx
|
|
216
|
+
p headers # => { ... }
|
|
217
|
+
p data # => <AccountAnalytics>
|
|
218
|
+
rescue PostBoost::ApiError => e
|
|
219
|
+
puts "Error when calling AnalyticsApi->get_account_analytics_with_http_info: #{e}"
|
|
220
|
+
end
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Parameters
|
|
224
|
+
|
|
225
|
+
| Name | Type | Description | Notes |
|
|
226
|
+
| ---- | ---- | ----------- | ----- |
|
|
227
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
228
|
+
| **account_uuid** | **String** | UUID of the social media account. | |
|
|
229
|
+
| **period** | **String** | Preset reporting period. Ignored when `date_from` and `date_to` are given. | [optional][default to 'this_month'] |
|
|
230
|
+
| **date_from** | **Date** | Start of a custom range (Y-m-d). Required with `date_to`; the range may span at most 366 days. | [optional] |
|
|
231
|
+
| **date_to** | **Date** | End of a custom range (Y-m-d). Required with `date_from`; must not be before it. | [optional] |
|
|
232
|
+
| **type** | **String** | Analytics tab. Defaults to the account's default tab. | [optional] |
|
|
233
|
+
| **page** | **Integer** | Page for list-style tabs (for example per-post metrics). | [optional][default to 1] |
|
|
234
|
+
| **per_page** | **Integer** | | [optional] |
|
|
235
|
+
| **sort_by** | **String** | | [optional] |
|
|
236
|
+
| **sort_dir** | **String** | | [optional][default to 'desc'] |
|
|
237
|
+
|
|
238
|
+
### Return type
|
|
239
|
+
|
|
240
|
+
[**AccountAnalytics**](AccountAnalytics.md)
|
|
241
|
+
|
|
242
|
+
### Authorization
|
|
243
|
+
|
|
244
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
245
|
+
|
|
246
|
+
### HTTP request headers
|
|
247
|
+
|
|
248
|
+
- **Content-Type**: Not defined
|
|
249
|
+
- **Accept**: application/json
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
## get_analytics_summary
|
|
253
|
+
|
|
254
|
+
> <AnalyticsSummary> get_analytics_summary(workspace_uuid, opts)
|
|
255
|
+
|
|
256
|
+
Get analytics summary
|
|
257
|
+
|
|
258
|
+
Cross-platform summary (followers, growth, posts, leaderboard, posting streak) over every account that supports analytics, for a preset period or a custom date range.
|
|
259
|
+
|
|
260
|
+
### Examples
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
require 'time'
|
|
264
|
+
require 'postboost'
|
|
265
|
+
# setup authorization
|
|
266
|
+
PostBoost.configure do |config|
|
|
267
|
+
# Configure Bearer authorization: bearerAuth
|
|
268
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
272
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
273
|
+
opts = {
|
|
274
|
+
period: 'this_week', # String | Preset reporting period. Ignored when `date_from` and `date_to` are given.
|
|
275
|
+
date_from: Date.parse('2013-10-20'), # Date | Start of a custom range (Y-m-d). Required with `date_to`; the range may span at most 366 days.
|
|
276
|
+
date_to: Date.parse('2013-10-20') # Date | End of a custom range (Y-m-d). Required with `date_from`; must not be before it.
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
begin
|
|
280
|
+
# Get analytics summary
|
|
281
|
+
result = api_instance.get_analytics_summary(workspace_uuid, opts)
|
|
282
|
+
p result
|
|
283
|
+
rescue PostBoost::ApiError => e
|
|
284
|
+
puts "Error when calling AnalyticsApi->get_analytics_summary: #{e}"
|
|
285
|
+
end
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
#### Using the get_analytics_summary_with_http_info variant
|
|
289
|
+
|
|
290
|
+
This returns an Array which contains the response data, status code and headers.
|
|
291
|
+
|
|
292
|
+
> <Array(<AnalyticsSummary>, Integer, Hash)> get_analytics_summary_with_http_info(workspace_uuid, opts)
|
|
293
|
+
|
|
294
|
+
```ruby
|
|
295
|
+
begin
|
|
296
|
+
# Get analytics summary
|
|
297
|
+
data, status_code, headers = api_instance.get_analytics_summary_with_http_info(workspace_uuid, opts)
|
|
298
|
+
p status_code # => 2xx
|
|
299
|
+
p headers # => { ... }
|
|
300
|
+
p data # => <AnalyticsSummary>
|
|
301
|
+
rescue PostBoost::ApiError => e
|
|
302
|
+
puts "Error when calling AnalyticsApi->get_analytics_summary_with_http_info: #{e}"
|
|
303
|
+
end
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Parameters
|
|
307
|
+
|
|
308
|
+
| Name | Type | Description | Notes |
|
|
309
|
+
| ---- | ---- | ----------- | ----- |
|
|
310
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
311
|
+
| **period** | **String** | Preset reporting period. Ignored when `date_from` and `date_to` are given. | [optional][default to 'this_month'] |
|
|
312
|
+
| **date_from** | **Date** | Start of a custom range (Y-m-d). Required with `date_to`; the range may span at most 366 days. | [optional] |
|
|
313
|
+
| **date_to** | **Date** | End of a custom range (Y-m-d). Required with `date_from`; must not be before it. | [optional] |
|
|
314
|
+
|
|
315
|
+
### Return type
|
|
316
|
+
|
|
317
|
+
[**AnalyticsSummary**](AnalyticsSummary.md)
|
|
318
|
+
|
|
319
|
+
### Authorization
|
|
320
|
+
|
|
321
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
322
|
+
|
|
323
|
+
### HTTP request headers
|
|
324
|
+
|
|
325
|
+
- **Content-Type**: Not defined
|
|
326
|
+
- **Accept**: application/json
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
## get_best_posting_times
|
|
330
|
+
|
|
331
|
+
> <BestPostingTimes> get_best_posting_times(workspace_uuid, opts)
|
|
332
|
+
|
|
333
|
+
Get best posting times
|
|
334
|
+
|
|
335
|
+
The next recommended date and time per account, on or after `from` (never in the past), within the next 14 days.
|
|
336
|
+
|
|
337
|
+
### Examples
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
require 'time'
|
|
341
|
+
require 'postboost'
|
|
342
|
+
# setup authorization
|
|
343
|
+
PostBoost.configure do |config|
|
|
344
|
+
# Configure Bearer authorization: bearerAuth
|
|
345
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
349
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
350
|
+
opts = {
|
|
351
|
+
accounts: ['inner_example'], # Array<String> | Account UUIDs. Defaults to every account in the workspace.
|
|
352
|
+
from: Date.parse('2013-10-20'), # Date | Earliest date to recommend (Y-m-d). Defaults to now.
|
|
353
|
+
timezone: 'timezone_example' # String | Timezone for `from` and the returned times. Defaults to the workspace timezone.
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
begin
|
|
357
|
+
# Get best posting times
|
|
358
|
+
result = api_instance.get_best_posting_times(workspace_uuid, opts)
|
|
359
|
+
p result
|
|
360
|
+
rescue PostBoost::ApiError => e
|
|
361
|
+
puts "Error when calling AnalyticsApi->get_best_posting_times: #{e}"
|
|
362
|
+
end
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
#### Using the get_best_posting_times_with_http_info variant
|
|
366
|
+
|
|
367
|
+
This returns an Array which contains the response data, status code and headers.
|
|
368
|
+
|
|
369
|
+
> <Array(<BestPostingTimes>, Integer, Hash)> get_best_posting_times_with_http_info(workspace_uuid, opts)
|
|
370
|
+
|
|
371
|
+
```ruby
|
|
372
|
+
begin
|
|
373
|
+
# Get best posting times
|
|
374
|
+
data, status_code, headers = api_instance.get_best_posting_times_with_http_info(workspace_uuid, opts)
|
|
375
|
+
p status_code # => 2xx
|
|
376
|
+
p headers # => { ... }
|
|
377
|
+
p data # => <BestPostingTimes>
|
|
378
|
+
rescue PostBoost::ApiError => e
|
|
379
|
+
puts "Error when calling AnalyticsApi->get_best_posting_times_with_http_info: #{e}"
|
|
380
|
+
end
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Parameters
|
|
384
|
+
|
|
385
|
+
| Name | Type | Description | Notes |
|
|
386
|
+
| ---- | ---- | ----------- | ----- |
|
|
387
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
388
|
+
| **accounts** | [**Array<String>**](String.md) | Account UUIDs. Defaults to every account in the workspace. | [optional] |
|
|
389
|
+
| **from** | **Date** | Earliest date to recommend (Y-m-d). Defaults to now. | [optional] |
|
|
390
|
+
| **timezone** | **String** | Timezone for `from` and the returned times. Defaults to the workspace timezone. | [optional] |
|
|
391
|
+
|
|
392
|
+
### Return type
|
|
393
|
+
|
|
394
|
+
[**BestPostingTimes**](BestPostingTimes.md)
|
|
395
|
+
|
|
396
|
+
### Authorization
|
|
397
|
+
|
|
398
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
399
|
+
|
|
400
|
+
### HTTP request headers
|
|
401
|
+
|
|
402
|
+
- **Content-Type**: Not defined
|
|
403
|
+
- **Accept**: application/json
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
## get_post_analytics_0
|
|
407
|
+
|
|
408
|
+
> <PostAnalytics> get_post_analytics_0(workspace_uuid, post_uuid)
|
|
409
|
+
|
|
410
|
+
Get post analytics
|
|
411
|
+
|
|
412
|
+
Engagement metrics for a published post across its accounts (also works for trashed posts), with totals, trends and the best-performing account.
|
|
413
|
+
|
|
414
|
+
### Examples
|
|
415
|
+
|
|
416
|
+
```ruby
|
|
417
|
+
require 'time'
|
|
418
|
+
require 'postboost'
|
|
419
|
+
# setup authorization
|
|
420
|
+
PostBoost.configure do |config|
|
|
421
|
+
# Configure Bearer authorization: bearerAuth
|
|
422
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
426
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
427
|
+
post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
|
|
428
|
+
|
|
429
|
+
begin
|
|
430
|
+
# Get post analytics
|
|
431
|
+
result = api_instance.get_post_analytics_0(workspace_uuid, post_uuid)
|
|
432
|
+
p result
|
|
433
|
+
rescue PostBoost::ApiError => e
|
|
434
|
+
puts "Error when calling AnalyticsApi->get_post_analytics_0: #{e}"
|
|
435
|
+
end
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
#### Using the get_post_analytics_0_with_http_info variant
|
|
439
|
+
|
|
440
|
+
This returns an Array which contains the response data, status code and headers.
|
|
441
|
+
|
|
442
|
+
> <Array(<PostAnalytics>, Integer, Hash)> get_post_analytics_0_with_http_info(workspace_uuid, post_uuid)
|
|
443
|
+
|
|
444
|
+
```ruby
|
|
445
|
+
begin
|
|
446
|
+
# Get post analytics
|
|
447
|
+
data, status_code, headers = api_instance.get_post_analytics_0_with_http_info(workspace_uuid, post_uuid)
|
|
448
|
+
p status_code # => 2xx
|
|
449
|
+
p headers # => { ... }
|
|
450
|
+
p data # => <PostAnalytics>
|
|
451
|
+
rescue PostBoost::ApiError => e
|
|
452
|
+
puts "Error when calling AnalyticsApi->get_post_analytics_0_with_http_info: #{e}"
|
|
453
|
+
end
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
### Parameters
|
|
457
|
+
|
|
458
|
+
| Name | Type | Description | Notes |
|
|
459
|
+
| ---- | ---- | ----------- | ----- |
|
|
460
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
461
|
+
| **post_uuid** | **String** | UUID of the post. | |
|
|
462
|
+
|
|
463
|
+
### Return type
|
|
464
|
+
|
|
465
|
+
[**PostAnalytics**](PostAnalytics.md)
|
|
466
|
+
|
|
467
|
+
### Authorization
|
|
468
|
+
|
|
469
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
470
|
+
|
|
471
|
+
### HTTP request headers
|
|
472
|
+
|
|
473
|
+
- **Content-Type**: Not defined
|
|
474
|
+
- **Accept**: application/json
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
## get_posting_times
|
|
478
|
+
|
|
479
|
+
> <PostingTimes> get_posting_times(workspace_uuid, opts)
|
|
480
|
+
|
|
481
|
+
Get posting times heatmap
|
|
482
|
+
|
|
483
|
+
Engagement scores per weekday and hour, merged across the given accounts (all accounts when none is given), in the requested timezone. Also returns up to three recommended slots.
|
|
484
|
+
|
|
485
|
+
### Examples
|
|
486
|
+
|
|
487
|
+
```ruby
|
|
488
|
+
require 'time'
|
|
489
|
+
require 'postboost'
|
|
490
|
+
# setup authorization
|
|
491
|
+
PostBoost.configure do |config|
|
|
492
|
+
# Configure Bearer authorization: bearerAuth
|
|
493
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
497
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
498
|
+
opts = {
|
|
499
|
+
accounts: ['inner_example'], # Array<String> | Account UUIDs. Defaults to every account in the workspace.
|
|
500
|
+
timezone: 'Europe/Istanbul' # String | Timezone the grid is expressed in. Defaults to the workspace timezone.
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
begin
|
|
504
|
+
# Get posting times heatmap
|
|
505
|
+
result = api_instance.get_posting_times(workspace_uuid, opts)
|
|
506
|
+
p result
|
|
507
|
+
rescue PostBoost::ApiError => e
|
|
508
|
+
puts "Error when calling AnalyticsApi->get_posting_times: #{e}"
|
|
509
|
+
end
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
#### Using the get_posting_times_with_http_info variant
|
|
513
|
+
|
|
514
|
+
This returns an Array which contains the response data, status code and headers.
|
|
515
|
+
|
|
516
|
+
> <Array(<PostingTimes>, Integer, Hash)> get_posting_times_with_http_info(workspace_uuid, opts)
|
|
517
|
+
|
|
518
|
+
```ruby
|
|
519
|
+
begin
|
|
520
|
+
# Get posting times heatmap
|
|
521
|
+
data, status_code, headers = api_instance.get_posting_times_with_http_info(workspace_uuid, opts)
|
|
522
|
+
p status_code # => 2xx
|
|
523
|
+
p headers # => { ... }
|
|
524
|
+
p data # => <PostingTimes>
|
|
525
|
+
rescue PostBoost::ApiError => e
|
|
526
|
+
puts "Error when calling AnalyticsApi->get_posting_times_with_http_info: #{e}"
|
|
527
|
+
end
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### Parameters
|
|
531
|
+
|
|
532
|
+
| Name | Type | Description | Notes |
|
|
533
|
+
| ---- | ---- | ----------- | ----- |
|
|
534
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
535
|
+
| **accounts** | [**Array<String>**](String.md) | Account UUIDs. Defaults to every account in the workspace. | [optional] |
|
|
536
|
+
| **timezone** | **String** | Timezone the grid is expressed in. Defaults to the workspace timezone. | [optional] |
|
|
537
|
+
|
|
538
|
+
### Return type
|
|
539
|
+
|
|
540
|
+
[**PostingTimes**](PostingTimes.md)
|
|
541
|
+
|
|
542
|
+
### Authorization
|
|
543
|
+
|
|
544
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
545
|
+
|
|
546
|
+
### HTTP request headers
|
|
547
|
+
|
|
548
|
+
- **Content-Type**: Not defined
|
|
549
|
+
- **Accept**: application/json
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
## get_report_branding
|
|
553
|
+
|
|
554
|
+
> <GetReportBranding200Response> get_report_branding(workspace_uuid)
|
|
555
|
+
|
|
556
|
+
Get the report branding
|
|
557
|
+
|
|
558
|
+
The white-label header of the workspace's PDF reports. Unset fields are `null`; the workspace name is used then.
|
|
559
|
+
|
|
560
|
+
### Examples
|
|
561
|
+
|
|
562
|
+
```ruby
|
|
563
|
+
require 'time'
|
|
564
|
+
require 'postboost'
|
|
565
|
+
# setup authorization
|
|
566
|
+
PostBoost.configure do |config|
|
|
567
|
+
# Configure Bearer authorization: bearerAuth
|
|
568
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
569
|
+
end
|
|
570
|
+
|
|
571
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
572
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
573
|
+
|
|
574
|
+
begin
|
|
575
|
+
# Get the report branding
|
|
576
|
+
result = api_instance.get_report_branding(workspace_uuid)
|
|
577
|
+
p result
|
|
578
|
+
rescue PostBoost::ApiError => e
|
|
579
|
+
puts "Error when calling AnalyticsApi->get_report_branding: #{e}"
|
|
580
|
+
end
|
|
581
|
+
```
|
|
582
|
+
|
|
583
|
+
#### Using the get_report_branding_with_http_info variant
|
|
584
|
+
|
|
585
|
+
This returns an Array which contains the response data, status code and headers.
|
|
586
|
+
|
|
587
|
+
> <Array(<GetReportBranding200Response>, Integer, Hash)> get_report_branding_with_http_info(workspace_uuid)
|
|
588
|
+
|
|
589
|
+
```ruby
|
|
590
|
+
begin
|
|
591
|
+
# Get the report branding
|
|
592
|
+
data, status_code, headers = api_instance.get_report_branding_with_http_info(workspace_uuid)
|
|
593
|
+
p status_code # => 2xx
|
|
594
|
+
p headers # => { ... }
|
|
595
|
+
p data # => <GetReportBranding200Response>
|
|
596
|
+
rescue PostBoost::ApiError => e
|
|
597
|
+
puts "Error when calling AnalyticsApi->get_report_branding_with_http_info: #{e}"
|
|
598
|
+
end
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
### Parameters
|
|
602
|
+
|
|
603
|
+
| Name | Type | Description | Notes |
|
|
604
|
+
| ---- | ---- | ----------- | ----- |
|
|
605
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
606
|
+
|
|
607
|
+
### Return type
|
|
608
|
+
|
|
609
|
+
[**GetReportBranding200Response**](GetReportBranding200Response.md)
|
|
610
|
+
|
|
611
|
+
### Authorization
|
|
612
|
+
|
|
613
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
614
|
+
|
|
615
|
+
### HTTP request headers
|
|
616
|
+
|
|
617
|
+
- **Content-Type**: Not defined
|
|
618
|
+
- **Accept**: application/json
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
## get_report_export
|
|
622
|
+
|
|
623
|
+
> <CreateReportExport201Response> get_report_export(workspace_uuid, export_uuid)
|
|
624
|
+
|
|
625
|
+
Get a report export
|
|
626
|
+
|
|
627
|
+
### Examples
|
|
628
|
+
|
|
629
|
+
```ruby
|
|
630
|
+
require 'time'
|
|
631
|
+
require 'postboost'
|
|
632
|
+
# setup authorization
|
|
633
|
+
PostBoost.configure do |config|
|
|
634
|
+
# Configure Bearer authorization: bearerAuth
|
|
635
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
639
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
640
|
+
export_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the report export.
|
|
641
|
+
|
|
642
|
+
begin
|
|
643
|
+
# Get a report export
|
|
644
|
+
result = api_instance.get_report_export(workspace_uuid, export_uuid)
|
|
645
|
+
p result
|
|
646
|
+
rescue PostBoost::ApiError => e
|
|
647
|
+
puts "Error when calling AnalyticsApi->get_report_export: #{e}"
|
|
648
|
+
end
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
#### Using the get_report_export_with_http_info variant
|
|
652
|
+
|
|
653
|
+
This returns an Array which contains the response data, status code and headers.
|
|
654
|
+
|
|
655
|
+
> <Array(<CreateReportExport201Response>, Integer, Hash)> get_report_export_with_http_info(workspace_uuid, export_uuid)
|
|
656
|
+
|
|
657
|
+
```ruby
|
|
658
|
+
begin
|
|
659
|
+
# Get a report export
|
|
660
|
+
data, status_code, headers = api_instance.get_report_export_with_http_info(workspace_uuid, export_uuid)
|
|
661
|
+
p status_code # => 2xx
|
|
662
|
+
p headers # => { ... }
|
|
663
|
+
p data # => <CreateReportExport201Response>
|
|
664
|
+
rescue PostBoost::ApiError => e
|
|
665
|
+
puts "Error when calling AnalyticsApi->get_report_export_with_http_info: #{e}"
|
|
666
|
+
end
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
### Parameters
|
|
670
|
+
|
|
671
|
+
| Name | Type | Description | Notes |
|
|
672
|
+
| ---- | ---- | ----------- | ----- |
|
|
673
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
674
|
+
| **export_uuid** | **String** | UUID of the report export. | |
|
|
675
|
+
|
|
676
|
+
### Return type
|
|
677
|
+
|
|
678
|
+
[**CreateReportExport201Response**](CreateReportExport201Response.md)
|
|
679
|
+
|
|
680
|
+
### Authorization
|
|
681
|
+
|
|
682
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
683
|
+
|
|
684
|
+
### HTTP request headers
|
|
685
|
+
|
|
686
|
+
- **Content-Type**: Not defined
|
|
687
|
+
- **Accept**: application/json
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
## list_report_exports
|
|
691
|
+
|
|
692
|
+
> <ListReportExports200Response> list_report_exports(workspace_uuid)
|
|
693
|
+
|
|
694
|
+
List report exports
|
|
695
|
+
|
|
696
|
+
The workspace's latest 50 report exports, newest first. Files can be downloaded for 7 days.
|
|
697
|
+
|
|
698
|
+
### Examples
|
|
699
|
+
|
|
700
|
+
```ruby
|
|
701
|
+
require 'time'
|
|
702
|
+
require 'postboost'
|
|
703
|
+
# setup authorization
|
|
704
|
+
PostBoost.configure do |config|
|
|
705
|
+
# Configure Bearer authorization: bearerAuth
|
|
706
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
710
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
711
|
+
|
|
712
|
+
begin
|
|
713
|
+
# List report exports
|
|
714
|
+
result = api_instance.list_report_exports(workspace_uuid)
|
|
715
|
+
p result
|
|
716
|
+
rescue PostBoost::ApiError => e
|
|
717
|
+
puts "Error when calling AnalyticsApi->list_report_exports: #{e}"
|
|
718
|
+
end
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
#### Using the list_report_exports_with_http_info variant
|
|
722
|
+
|
|
723
|
+
This returns an Array which contains the response data, status code and headers.
|
|
724
|
+
|
|
725
|
+
> <Array(<ListReportExports200Response>, Integer, Hash)> list_report_exports_with_http_info(workspace_uuid)
|
|
726
|
+
|
|
727
|
+
```ruby
|
|
728
|
+
begin
|
|
729
|
+
# List report exports
|
|
730
|
+
data, status_code, headers = api_instance.list_report_exports_with_http_info(workspace_uuid)
|
|
731
|
+
p status_code # => 2xx
|
|
732
|
+
p headers # => { ... }
|
|
733
|
+
p data # => <ListReportExports200Response>
|
|
734
|
+
rescue PostBoost::ApiError => e
|
|
735
|
+
puts "Error when calling AnalyticsApi->list_report_exports_with_http_info: #{e}"
|
|
736
|
+
end
|
|
737
|
+
```
|
|
738
|
+
|
|
739
|
+
### Parameters
|
|
740
|
+
|
|
741
|
+
| Name | Type | Description | Notes |
|
|
742
|
+
| ---- | ---- | ----------- | ----- |
|
|
743
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
744
|
+
|
|
745
|
+
### Return type
|
|
746
|
+
|
|
747
|
+
[**ListReportExports200Response**](ListReportExports200Response.md)
|
|
748
|
+
|
|
749
|
+
### Authorization
|
|
750
|
+
|
|
751
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
752
|
+
|
|
753
|
+
### HTTP request headers
|
|
754
|
+
|
|
755
|
+
- **Content-Type**: Not defined
|
|
756
|
+
- **Accept**: application/json
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
## update_report_branding
|
|
760
|
+
|
|
761
|
+
> <GetReportBranding200Response> update_report_branding(workspace_uuid, report_branding_input)
|
|
762
|
+
|
|
763
|
+
Update the report branding
|
|
764
|
+
|
|
765
|
+
Name, colour and footer of PDF reports. Fields you leave out keep their value. Upload the logo with `uploadReportBrandingLogo`. Admins and members only.
|
|
766
|
+
|
|
767
|
+
### Examples
|
|
768
|
+
|
|
769
|
+
```ruby
|
|
770
|
+
require 'time'
|
|
771
|
+
require 'postboost'
|
|
772
|
+
# setup authorization
|
|
773
|
+
PostBoost.configure do |config|
|
|
774
|
+
# Configure Bearer authorization: bearerAuth
|
|
775
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
779
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
780
|
+
report_branding_input = PostBoost::ReportBrandingInput.new # ReportBrandingInput |
|
|
781
|
+
|
|
782
|
+
begin
|
|
783
|
+
# Update the report branding
|
|
784
|
+
result = api_instance.update_report_branding(workspace_uuid, report_branding_input)
|
|
785
|
+
p result
|
|
786
|
+
rescue PostBoost::ApiError => e
|
|
787
|
+
puts "Error when calling AnalyticsApi->update_report_branding: #{e}"
|
|
788
|
+
end
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
#### Using the update_report_branding_with_http_info variant
|
|
792
|
+
|
|
793
|
+
This returns an Array which contains the response data, status code and headers.
|
|
794
|
+
|
|
795
|
+
> <Array(<GetReportBranding200Response>, Integer, Hash)> update_report_branding_with_http_info(workspace_uuid, report_branding_input)
|
|
796
|
+
|
|
797
|
+
```ruby
|
|
798
|
+
begin
|
|
799
|
+
# Update the report branding
|
|
800
|
+
data, status_code, headers = api_instance.update_report_branding_with_http_info(workspace_uuid, report_branding_input)
|
|
801
|
+
p status_code # => 2xx
|
|
802
|
+
p headers # => { ... }
|
|
803
|
+
p data # => <GetReportBranding200Response>
|
|
804
|
+
rescue PostBoost::ApiError => e
|
|
805
|
+
puts "Error when calling AnalyticsApi->update_report_branding_with_http_info: #{e}"
|
|
806
|
+
end
|
|
807
|
+
```
|
|
808
|
+
|
|
809
|
+
### Parameters
|
|
810
|
+
|
|
811
|
+
| Name | Type | Description | Notes |
|
|
812
|
+
| ---- | ---- | ----------- | ----- |
|
|
813
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
814
|
+
| **report_branding_input** | [**ReportBrandingInput**](ReportBrandingInput.md) | | |
|
|
815
|
+
|
|
816
|
+
### Return type
|
|
817
|
+
|
|
818
|
+
[**GetReportBranding200Response**](GetReportBranding200Response.md)
|
|
819
|
+
|
|
820
|
+
### Authorization
|
|
821
|
+
|
|
822
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
823
|
+
|
|
824
|
+
### HTTP request headers
|
|
825
|
+
|
|
826
|
+
- **Content-Type**: application/json
|
|
827
|
+
- **Accept**: application/json
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
## upload_report_branding_logo
|
|
831
|
+
|
|
832
|
+
> <GetReportBranding200Response> upload_report_branding_logo(workspace_uuid, logo)
|
|
833
|
+
|
|
834
|
+
Upload the report logo
|
|
835
|
+
|
|
836
|
+
PNG or JPEG, up to 1 MB (SVG is not accepted). Replaces the current logo. Admins and members only.
|
|
837
|
+
|
|
838
|
+
### Examples
|
|
839
|
+
|
|
840
|
+
```ruby
|
|
841
|
+
require 'time'
|
|
842
|
+
require 'postboost'
|
|
843
|
+
# setup authorization
|
|
844
|
+
PostBoost.configure do |config|
|
|
845
|
+
# Configure Bearer authorization: bearerAuth
|
|
846
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
api_instance = PostBoost::AnalyticsApi.new
|
|
850
|
+
workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
|
|
851
|
+
logo = File.new('/path/to/some/file') # File |
|
|
852
|
+
|
|
853
|
+
begin
|
|
854
|
+
# Upload the report logo
|
|
855
|
+
result = api_instance.upload_report_branding_logo(workspace_uuid, logo)
|
|
856
|
+
p result
|
|
857
|
+
rescue PostBoost::ApiError => e
|
|
858
|
+
puts "Error when calling AnalyticsApi->upload_report_branding_logo: #{e}"
|
|
859
|
+
end
|
|
860
|
+
```
|
|
861
|
+
|
|
862
|
+
#### Using the upload_report_branding_logo_with_http_info variant
|
|
863
|
+
|
|
864
|
+
This returns an Array which contains the response data, status code and headers.
|
|
865
|
+
|
|
866
|
+
> <Array(<GetReportBranding200Response>, Integer, Hash)> upload_report_branding_logo_with_http_info(workspace_uuid, logo)
|
|
867
|
+
|
|
868
|
+
```ruby
|
|
869
|
+
begin
|
|
870
|
+
# Upload the report logo
|
|
871
|
+
data, status_code, headers = api_instance.upload_report_branding_logo_with_http_info(workspace_uuid, logo)
|
|
872
|
+
p status_code # => 2xx
|
|
873
|
+
p headers # => { ... }
|
|
874
|
+
p data # => <GetReportBranding200Response>
|
|
875
|
+
rescue PostBoost::ApiError => e
|
|
876
|
+
puts "Error when calling AnalyticsApi->upload_report_branding_logo_with_http_info: #{e}"
|
|
877
|
+
end
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
### Parameters
|
|
881
|
+
|
|
882
|
+
| Name | Type | Description | Notes |
|
|
883
|
+
| ---- | ---- | ----------- | ----- |
|
|
884
|
+
| **workspace_uuid** | **String** | UUID of the workspace. | |
|
|
885
|
+
| **logo** | **File** | | |
|
|
886
|
+
|
|
887
|
+
### Return type
|
|
888
|
+
|
|
889
|
+
[**GetReportBranding200Response**](GetReportBranding200Response.md)
|
|
890
|
+
|
|
891
|
+
### Authorization
|
|
892
|
+
|
|
893
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
894
|
+
|
|
895
|
+
### HTTP request headers
|
|
896
|
+
|
|
897
|
+
- **Content-Type**: multipart/form-data
|
|
898
|
+
- **Accept**: application/json
|
|
899
|
+
|