File size: 789 Bytes
851e5ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | """
Social publishing providers.
Each provider wraps one platform's OAuth flow, upload API and analytics API
behind the :class:`~src.social.base.SocialProvider` interface. All provider
methods are synchronous (they use ``requests``) and are expected to be run via
``run_in_thread`` from async code.
"""
from .base import (
AccountProfile,
OAuthTokens,
PostMetrics,
PublishRequest,
PublishResult,
SocialProvider,
SocialProviderError,
SUPPORTED_PROVIDERS,
)
from .registry import get_provider, list_provider_status
__all__ = [
"AccountProfile",
"OAuthTokens",
"PostMetrics",
"PublishRequest",
"PublishResult",
"SocialProvider",
"SocialProviderError",
"SUPPORTED_PROVIDERS",
"get_provider",
"list_provider_status",
]
|