ProtectedapiGet the API base URL for the platform
ProtectedaxiosGet or create axios instance with interceptors
ProtectedcommonCommon parameters for all social media actions
Get action description
ProtectedoauthOAuth-specific parameters that all OAuth actions should include
Define the parameters this action expects
ProtectedplatformGet the platform name (e.g., 'Twitter', 'LinkedIn')
ProtectedbuildBuild common API headers including authentication
OptionaladditionalHeaders: Record<string, string>ProtectedformatFormat date for API requests (ISO 8601)
ProtectedformatFormat date for HootSuite API (ISO 8601)
ProtectedgetGet the current access token
ProtectedgetGet custom attributes from company integration
ProtectedgetHelper to get parameter value from params array
ProtectedgetGet profile ID from parameters or default from integration
ProtectedgetGet the refresh token
ProtectedgetGet social profiles for the authenticated user
ProtectedhandleHandle HootSuite-specific errors
ProtectedhandleProtectedhandleHandle rate limiting with exponential backoff
OptionalretryAfter: numberProtectedinitializeInitialize OAuth connection by loading integration details.
the MJ Company Integration ID to load
Optionalparams: RunActionParamsthe running action's params; params.Provider is captured so all
subsequent entity loads/saves bind to the per-request provider (multi-tenant
correctness). When omitted, falls back to the global default Metadata provider.
ProtectedInternalGet analytics data from HootSuite
ProtectedisDetermine if an error is an authentication error. Can be overridden by subclasses for platform-specific error detection.
ProtectedisCheck if the current token is expired
ProtectedlogLog API request for debugging
Optionaldata: anyProtectedlogLog API response for debugging
ProtectedmakeProtectedmakeMake a paginated request to HootSuite API
ProtectednormalizeNormalize platform-specific analytics to common format
ProtectednormalizeProtectedparseParse date from API response
ProtectedparseParse HootSuite date string
ProtectedparseParse rate limit headers from API response
ProtectedrefreshRefresh the access token using the refresh token
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
ProtectedsearchSearch for posts - implemented in search action
ProtectedsetSet custom attributes in company integration
ProtectedupdateUpdate stored tokens after refresh
OptionalrefreshToken: stringOptionalexpiresIn: numberProtecteduploadProtecteduploadProtectedvalidate
Action to retrieve analytics data from HootSuite