import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/social-media-posting'; /** * SocialMediaPosting Service * Documentation for Social Media Posting API */ export declare class SocialMediaPosting { private client; constructor(httpClient: AxiosInstance); /** * Starts OAuth For Google Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to Google login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "google" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch Google account details using below API - API: '/social-media-posting/oauth/google/accounts/:accountId' Method: GET */ startGoogleOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get google business locations * Get google business locations */ getGoogleLocations(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Set google business locations * Set google business locations */ setGoogleLocations(params: { locationId: string; accountId: string; }, requestBody: Models.AttachGMBLocationDTO, options?: AxiosRequestConfig): Promise; /** * Get posts * Get Posts */ getPosts(params: { locationId: string; }, requestBody: Models.SearchPostDTO, options?: AxiosRequestConfig): Promise; /** * Create post * Create posts for all supported platforms. It is possible to create customized posts per channel by using the same platform account IDs in a request and hitting the create post API multiple times with different summaries and account IDs per platform. The content and media limitations, as well as platform rate limiters corresponding to the respective platforms, are provided in the following reference link: Link: [Platform Limitations](https://help.leadconnectorhq.com/support/solutions/articles/48001240003-social-planner-image-video-content-and-api-limitations "Social Planner Help") */ createPost(params: { locationId: string; }, requestBody: Models.CreatePostDTO, options?: AxiosRequestConfig): Promise; /** * Get post * Get post */ getPost(params: { locationId: string; id: string; }, options?: AxiosRequestConfig): Promise; /** * Edit post * Create posts for all supported platforms. It is possible to create customized posts per channel by using the same platform account IDs in a request and hitting the create post API multiple times with different summaries and account IDs per platform. The content and media limitations, as well as platform rate limiters corresponding to the respective platforms, are provided in the following reference link: Link: [Platform Limitations](https://help.leadconnectorhq.com/support/solutions/articles/48001240003-social-planner-image-video-content-and-api-limitations "Social Planner Help") */ editPost(params: { locationId: string; id: string; }, requestBody: Models.PostCreateRequest, options?: AxiosRequestConfig): Promise; /** * Delete Post * Delete Post */ deletePost(params: { locationId: string; id: string; }, options?: AxiosRequestConfig): Promise; /** * Bulk Delete Social Planner Posts * Deletes multiple posts based on the provided list of post IDs. This operation is useful for clearing up large numbers of posts efficiently. Note: 1.The maximum number of posts that can be deleted in a single request is '50'. 2.However, It will only get deleted in Highlevel database but still it is recommended to be cautious of this operation. */ bulkDeleteSocialPlannerPosts(params: { locationId: string; }, requestBody: Models.DeletePostsDto, options?: AxiosRequestConfig): Promise; /** * Get Accounts * Get list of accounts and groups */ getAccount(params: { locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Delete Account * Delete account and account from group */ deleteAccount(params: { locationId: string; id: string; companyId?: string; userId?: string; }, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For Facebook Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to Facebook login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "facebook" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch Facebook account details using below API - API: '/social-media-posting/oauth/facebook/accounts/:accountId' Method: GET */ startFacebookOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get facebook pages * Get facebook pages */ getFacebookPageGroup(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Attach facebook pages * Attach facebook pages */ attachFacebookPageGroup(params: { locationId: string; accountId: string; }, requestBody: Models.AttachFBAccountDTO, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For Instagram Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to Instagram login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "instagram" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch Instagram account details using below API - API: '/social-media-posting/oauth/instagram/accounts/:accountId' Method: GET */ startInstagramOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get Instagram Professional Accounts * Get Instagram Professional Accounts */ getInstagramPageGroup(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Attach Instagram Professional Accounts * Attach Instagram Professional Accounts */ attachInstagramPageGroup(params: { locationId: string; accountId: string; }, requestBody: Models.AttachIGAccountDTO, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For LinkedIn Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to LinkedIn login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "linkedin" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch LinkedIn account details using below API - API: '/social-media-posting/oauth/linkedin/accounts/:accountId' Method: GET */ startLinkedinOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get Linkedin pages and profile * Get Linkedin pages and profile */ getLinkedinPageProfile(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Attach linkedin pages and profile * Attach linkedin pages and profile */ attachLinkedinPageProfile(params: { locationId: string; accountId: string; }, requestBody: Models.AttachLinkedinAccountDTO, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For Twitter Account * <div><div> <span style= "display: inline-block; width: 25px; height: 25px; background-color: red; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 20px; border: 2px solid black; border-radius: 20%; margin-right: 10px;"> ! </span> <span><strong>As of December 4, 2024, X (formerly Twitter) is no longer supported. We apologise for any inconvenience.</strong></span> </div></div> * @deprecated This method is deprecated */ startTwitterOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get Twitter profile * <div><div> <span style= "display: inline-block; width: 25px; height: 25px; background-color: red; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 20px; border: 2px solid black; border-radius: 20%; margin-right: 10px;"> ! </span> <span><strong>As of December 4, 2024, X (formerly Twitter) is no longer supported. We apologise for any inconvenience.</strong></span> </div></div> * @deprecated This method is deprecated */ getTwitterProfile(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Attach Twitter profile * <div><div> <span style= "display: inline-block; width: 25px; height: 25px; background-color: red; color: black; font-weight: bold; font-size: 24px; text-align: center; line-height: 20px; border: 2px solid black; border-radius: 20%; margin-right: 10px;"> ! </span> <span><strong>As of December 4, 2024, X (formerly Twitter) is no longer supported. We apologise for any inconvenience.</strong></span> </div></div> * @deprecated This method is deprecated */ attachTwitterProfile(params: { locationId: string; accountId: string; }, requestBody: Models.AttachTwitterAccountDTO, options?: AxiosRequestConfig): Promise; /** * Upload CSV * */ uploadCsv(params: { locationId: string; }, requestBody: any, options?: AxiosRequestConfig): Promise; /** * Get Upload Status * */ getUploadStatus(params: { locationId: string; skip?: string; limit?: string; includeUsers?: string; userId?: string; }, options?: AxiosRequestConfig): Promise; /** * Set Accounts * */ setAccounts(params: { locationId: string; }, requestBody: Models.SetAccountsDTO, options?: AxiosRequestConfig): Promise; /** * Get CSV Post * */ getCsvPost(params: { locationId: string; id: string; skip?: string; limit?: string; }, options?: AxiosRequestConfig): Promise; /** * Start CSV Finalize * */ startCsvFinalize(params: { locationId: string; id: string; }, requestBody: Models.CSVDefaultDTO, options?: AxiosRequestConfig): Promise; /** * Delete CSV * */ deleteCsv(params: { locationId: string; id: string; }, options?: AxiosRequestConfig): Promise; /** * Delete CSV Post * */ deleteCsvPost(params: { locationId: string; postId: string; csvId: string; }, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For Tiktok Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to Tiktok login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "tiktok" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch Tiktok account details using below API - API: '/social-media-posting/oauth/tiktok/accounts/:accountId' Method: GET */ startTiktokOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get Tiktok profile * Get Tiktok profile */ getTiktokProfile(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Attach Tiktok profile * Attach Tiktok profile */ attachTiktokProfile(params: { locationId: string; accountId: string; }, requestBody: Models.AttachTiktokAccountDTO, options?: AxiosRequestConfig): Promise; /** * Starts OAuth For Tiktok Business Account * Open the API in a window with appropriate params and headers instead of using the Curl. User is navigated to Tiktok-Business login OAuth screen. On successful login, listen on window object for message where event listener returns data in its callback function. ### Sample code to listen to event data: window.addEventListener('message', function(e) { if (e.data && e.data.page === 'social_media_posting') { const { actionType, page, platform, placement, accountId, reconnectAccounts } = e.data } }, false) ### Event Data Response: { actionType: string, Ex: "close" page: string, Ex: "social-media-posting" platform: string, Ex: "tiktok-business" placement: string, Ex: "placement" accountId: string, Ex: "658a9b6833b91e0ecb8f3958" reconnectAccounts: string[]] Ex: ["658a9b6833b91e0ecb834acd", "efd2daa9b6833b91e0ecb8f3511"] } ### The accountId retrieved from above data can be used to fetch Tiktok-Business account details using below API - API: '/social-media-posting/oauth/tiktok-business/accounts/:accountId' Method: GET */ startTiktokBusinessOauth(params: { locationId: string; userId: string; page?: string; reconnect?: string; }, options?: AxiosRequestConfig): Promise; /** * Get Tiktok Business profile * Get Tiktok Business profile */ getTiktokBusinessProfile(params: { locationId: string; accountId: string; }, options?: AxiosRequestConfig): Promise; /** * Get categories by location id * */ getCategoriesLocationId(params: { locationId: string; searchText?: string; limit?: string; skip?: string; }, options?: AxiosRequestConfig): Promise; /** * Get categories by id * */ getCategoriesId(params: { id: string; locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Get tags by location id * */ getTagsLocationId(params: { locationId: string; searchText?: string; limit?: string; skip?: string; }, options?: AxiosRequestConfig): Promise; /** * Get tags by ids * */ getTagsByIds(params: { locationId: string; }, requestBody: Models.UpdateTagDTO, options?: AxiosRequestConfig): Promise; /** * Get Social Media Statistics * Retrieve analytics data for multiple social media accounts. Provides metrics for the last 7 days with comparison to the previous 7 days. Supports filtering by platforms and specific connected accounts. */ getSocialMediaStatistics(params: { locationId: string; }, requestBody?: any, options?: AxiosRequestConfig): Promise; } export default SocialMediaPosting; //# sourceMappingURL=social-media-posting.d.ts.map