Module: PostProxy

Defined in:
lib/postproxy.rb,
lib/postproxy/types.rb,
lib/postproxy/client.rb,
lib/postproxy/errors.rb,
lib/postproxy/version.rb,
lib/postproxy/constants.rb,
lib/postproxy/webhook_events.rb,
lib/postproxy/resources/posts.rb,
lib/postproxy/resources/queues.rb,
lib/postproxy/webhook_signature.rb,
lib/postproxy/resources/comments.rb,
lib/postproxy/resources/profiles.rb,
lib/postproxy/resources/webhooks.rb,
lib/postproxy/resources/profile_groups.rb,
lib/postproxy/resources/profile_comments.rb

Defined Under Namespace

Modules: Resources, WebhookEvents, WebhookSignature Classes: AcceptedResponse, AuthenticationError, BadRequestError, BlueskyConnectionResponse, BlueskyParams, Client, Comment, ConnectionResponse, DeleteOnPlatformResponse, DeleteResponse, DeletingPlatform, Error, ErrorDetails, FacebookParams, Insights, InstagramParams, LinkedInParams, ListResponse, Media, MediaPlatformError, Model, NextSlotResponse, NotFoundError, PaginatedResponse, PinterestParams, Placement, PlatformParams, PlatformResult, PlatformStats, Post, PostStats, Profile, ProfileComment, ProfileGroup, ProfileStats, ProfileStatsResponse, Queue, StatsRecord, StatsResponse, SuccessResponse, SyncProfile, TelegramConnectionResponse, TelegramParams, ThreadChild, ThreadsParams, TikTokParams, Timeslot, TwitterParams, ValidationError, Webhook, WebhookDelivery, WebhookParseError, YouTubeParams

Constant Summary collapse

OAuthConnectionResponse =

Alias for clarity at call sites; same shape as ConnectionResponse.

ConnectionResponse
VERSION =
"1.9.0"
DEFAULT_BASE_URL =
"https://api.postproxy.dev"
PLATFORMS =
%w[
  facebook instagram tiktok linkedin youtube twitter threads pinterest bluesky telegram google_business
].freeze
PROFILE_STATUSES =
%w[active expired inactive].freeze
POST_STATUSES =
%w[pending draft processing processed scheduled media_processing_failed].freeze
MEDIA_STATUSES =
%w[pending processed failed].freeze
PLATFORM_POST_STATUSES =
%w[pending processing published failed deleted].freeze
INSTAGRAM_FORMATS =
%w[post reel story].freeze
FACEBOOK_FORMATS =
%w[post story reel].freeze
TIKTOK_FORMATS =
%w[video image].freeze
LINKEDIN_FORMATS =
%w[post].freeze
YOUTUBE_FORMATS =
%w[post].freeze
PINTEREST_FORMATS =
%w[pin].freeze
THREADS_FORMATS =
%w[post].freeze
TWITTER_FORMATS =
%w[post].freeze
BLUESKY_FORMATS =
%w[post].freeze
TELEGRAM_FORMATS =
%w[post].freeze
TIKTOK_PRIVACIES =
%w[
  PUBLIC_TO_EVERYONE MUTUAL_FOLLOW_FRIENDS FOLLOWER_OF_CREATOR SELF_ONLY
].freeze
YOUTUBE_PRIVACIES =
%w[public unlisted private].freeze
TELEGRAM_PARSE_MODES =
%w[HTML MarkdownV2].freeze
WEBHOOK_EVENT_TYPES =
%w[
  post.processed
  post.imported
  platform_post.published
  platform_post.failed
  platform_post.failed_waiting_for_retry
  platform_post.insights
  profile.connected
  profile.disconnected
  profile.stats
  media.failed
  comment.created
].freeze