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')
ProtecteduploadUpload endpoint for media
ProtectedbuildBuild common API headers including authentication
OptionaladditionalHeaders: Record<string, string>ProtectedbuildProtectedcreateProtecteddeleteDelete a tweet
ProtectedformatFormat date for API requests (ISO 8601)
ProtectedformatFormat date for Twitter API (RFC 3339)
ProtectedgetGet the current access token
ProtectedgetGet the authenticated user's info
ProtectedgetGet custom attributes from company integration
ProtectedgetProtectedgetHelper to get parameter value from params array
ProtectedgetGet profile ID from parameters or default from integration
ProtectedgetGet the refresh token
ProtectedgetGet tweets with specified parameters
ProtectedhandleProtectedhandleHandle rate limiting with exponential backoff
OptionalretryAfter: numberProtectedhandleHandle Twitter-specific errors
ProtectedinitializeInitialize 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.
ProtectedInternalProtectedisDetermine 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
ProtectedmakeProtectednormalizeNormalize Twitter analytics to common format
ProtectednormalizeProtectedparseParse date from API response
ProtectedparseParse Twitter-specific rate limit headers
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 tweets - implemented in search action
ProtectedsetSet custom attributes in company integration
ProtectedupdateUpdate stored tokens after refresh
OptionalrefreshToken: stringOptionalexpiresIn: numberProtecteduploadProtecteduploadProtectedvalidate
Action to get analytics for tweets or user account from Twitter/X