All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| CompleteTelegramConnect | PATCH /v1/connect/telegram | Check Telegram status |
| ConnectBlueskyCredentials | POST /v1/connect/bluesky/credentials | Connect Bluesky account |
| ConnectWhatsAppCredentials | POST /v1/connect/whatsapp/credentials | Connect WhatsApp via credentials |
| GetConnectUrl | GET /v1/connect/{platform} | Get OAuth connect URL |
| GetFacebookPages | GET /v1/accounts/{accountId}/facebook-page | List Facebook pages |
| GetGmbLocations | GET /v1/accounts/{accountId}/gmb-locations | List GBP locations |
| GetLinkedInOrganizations | GET /v1/accounts/{accountId}/linkedin-organizations | List LinkedIn orgs |
| GetPendingOAuthData | GET /v1/connect/pending-data | Get pending OAuth data |
| GetPinterestBoards | GET /v1/accounts/{accountId}/pinterest-boards | List Pinterest boards |
| GetRedditFlairs | GET /v1/accounts/{accountId}/reddit-flairs | List subreddit flairs |
| GetRedditSubreddits | GET /v1/accounts/{accountId}/reddit-subreddits | List Reddit subreddits |
| GetTelegramConnectStatus | GET /v1/connect/telegram | Generate Telegram code |
| HandleOAuthCallback | POST /v1/connect/{platform} | Complete OAuth callback |
| InitiateTelegramConnect | POST /v1/connect/telegram | Connect Telegram directly |
| ListFacebookPages | GET /v1/connect/facebook/select-page | List Facebook pages |
| ListGoogleBusinessLocations | GET /v1/connect/googlebusiness/locations | List GBP locations |
| ListLinkedInOrganizations | GET /v1/connect/linkedin/organizations | List LinkedIn orgs |
| ListPinterestBoardsForSelection | GET /v1/connect/pinterest/select-board | List Pinterest boards |
| ListSnapchatProfiles | GET /v1/connect/snapchat/select-profile | List Snapchat profiles |
| SelectFacebookPage | POST /v1/connect/facebook/select-page | Select Facebook page |
| SelectGoogleBusinessLocation | POST /v1/connect/googlebusiness/select-location | Select GBP location |
| SelectLinkedInOrganization | POST /v1/connect/linkedin/select-organization | Select LinkedIn org |
| SelectPinterestBoard | POST /v1/connect/pinterest/select-board | Select Pinterest board |
| SelectSnapchatProfile | POST /v1/connect/snapchat/select-profile | Select Snapchat profile |
| UpdateFacebookPage | PUT /v1/accounts/{accountId}/facebook-page | Update Facebook page |
| UpdateGmbLocation | PUT /v1/accounts/{accountId}/gmb-locations | Update GBP location |
| UpdateLinkedInOrganization | PUT /v1/accounts/{accountId}/linkedin-organization | Switch LinkedIn account type |
| UpdatePinterestBoards | PUT /v1/accounts/{accountId}/pinterest-boards | Set default Pinterest board |
| UpdateRedditSubreddits | PUT /v1/accounts/{accountId}/reddit-subreddits | Set default subreddit |
CompleteTelegramConnect200Response CompleteTelegramConnect (string code)
Check Telegram status
Poll this endpoint to check if a Telegram access code has been used to connect a channel/group. Recommended polling interval: 3 seconds. Status values: pending (waiting for user), connected (channel/group linked), expired (generate a new code).
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class CompleteTelegramConnectExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var code = ZRN-ABC123; // string | The access code to check status for
try
{
// Check Telegram status
CompleteTelegramConnect200Response result = apiInstance.CompleteTelegramConnect(code);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.CompleteTelegramConnect: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Check Telegram status
ApiResponse<CompleteTelegramConnect200Response> response = apiInstance.CompleteTelegramConnectWithHttpInfo(code);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.CompleteTelegramConnectWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| code | string | The access code to check status for |
CompleteTelegramConnect200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Connection status | - |
| 401 | Unauthorized | - |
| 404 | Code not found | - |
| 500 | Internal error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectBlueskyCredentials200Response ConnectBlueskyCredentials (ConnectBlueskyCredentialsRequest connectBlueskyCredentialsRequest)
Connect Bluesky account
Connect a Bluesky account using identifier (handle or email) and an app password. To get your userId for the state parameter, call GET /v1/users which includes a currentUserId field.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ConnectBlueskyCredentialsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var connectBlueskyCredentialsRequest = new ConnectBlueskyCredentialsRequest(); // ConnectBlueskyCredentialsRequest |
try
{
// Connect Bluesky account
ConnectBlueskyCredentials200Response result = apiInstance.ConnectBlueskyCredentials(connectBlueskyCredentialsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ConnectBlueskyCredentials: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Connect Bluesky account
ApiResponse<ConnectBlueskyCredentials200Response> response = apiInstance.ConnectBlueskyCredentialsWithHttpInfo(connectBlueskyCredentialsRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ConnectBlueskyCredentialsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| connectBlueskyCredentialsRequest | ConnectBlueskyCredentialsRequest |
ConnectBlueskyCredentials200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bluesky connected successfully | - |
| 400 | Invalid request - missing fields or invalid state format | - |
| 401 | Unauthorized | - |
| 500 | Internal error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectWhatsAppCredentials200Response ConnectWhatsAppCredentials (ConnectWhatsAppCredentialsRequest connectWhatsAppCredentialsRequest)
Connect WhatsApp via credentials
Connect a WhatsApp Business Account by providing Meta credentials directly. This is the headless alternative to the Embedded Signup browser flow. To get the required credentials: 1. Go to Meta Business Suite (business.facebook.com) 2. Create or select a WhatsApp Business Account 3. In Business Settings > System Users, create a System User 4. Assign it the whatsapp_business_management and whatsapp_business_messaging permissions 5. Generate a permanent access token 6. Get the WABA ID from WhatsApp Manager > Account Tools > Phone Numbers 7. Get the Phone Number ID from the same page (click on the number)
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ConnectWhatsAppCredentialsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var connectWhatsAppCredentialsRequest = new ConnectWhatsAppCredentialsRequest(); // ConnectWhatsAppCredentialsRequest |
try
{
// Connect WhatsApp via credentials
ConnectWhatsAppCredentials200Response result = apiInstance.ConnectWhatsAppCredentials(connectWhatsAppCredentialsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ConnectWhatsAppCredentials: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Connect WhatsApp via credentials
ApiResponse<ConnectWhatsAppCredentials200Response> response = apiInstance.ConnectWhatsAppCredentialsWithHttpInfo(connectWhatsAppCredentialsRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ConnectWhatsAppCredentialsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| connectWhatsAppCredentialsRequest | ConnectWhatsAppCredentialsRequest |
ConnectWhatsAppCredentials200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | WhatsApp connected successfully | - |
| 400 | Invalid request. Either missing fields or the phoneNumberId was not found in the specified WABA. If the phone was not found, the response includes `availablePhoneNumbers` to help identify the correct ID. | - |
| 401 | Invalid or expired access token | - |
| 403 | Profile limit exceeded for this plan | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetConnectUrl200Response GetConnectUrl (string platform, string profileId, string? redirectUrl = null, bool? headless = null)
Get OAuth connect URL
Initiate an OAuth connection flow. Returns an authUrl to redirect the user to. Standard flow: Zernio hosts the selection UI, then redirects to your redirect_url. Headless mode (headless=true): user is redirected to your redirect_url with OAuth data for custom UI. Use the platform-specific selection endpoints to complete.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetConnectUrlExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var platform = "facebook"; // string | Social media platform to connect
var profileId = "profileId_example"; // string | Your Zernio profile ID (get from /v1/profiles)
var redirectUrl = "redirectUrl_example"; // string? | Your custom redirect URL after connection completes. Standard mode appends ?connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId. (optional)
var headless = false; // bool? | When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience. (optional) (default to false)
try
{
// Get OAuth connect URL
GetConnectUrl200Response result = apiInstance.GetConnectUrl(platform, profileId, redirectUrl, headless);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetConnectUrl: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get OAuth connect URL
ApiResponse<GetConnectUrl200Response> response = apiInstance.GetConnectUrlWithHttpInfo(platform, profileId, redirectUrl, headless);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetConnectUrlWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| platform | string | Social media platform to connect | |
| profileId | string | Your Zernio profile ID (get from /v1/profiles) | |
| redirectUrl | string? | Your custom redirect URL after connection completes. Standard mode appends ?connected={platform}&profileId=X&accountId=Y&username=Z. Headless mode appends OAuth data params for platforms requiring selection (e.g. LinkedIn orgs, Facebook pages). If no selection is needed, the account is created directly and the redirect includes accountId. | [optional] |
| headless | bool? | When true, the user is redirected to your redirect_url with raw OAuth data (code, state) instead of Zernio's default account selection UI. Use this to build a custom connect experience. | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OAuth authorization URL to redirect user to | - |
| 400 | Missing/invalid parameters (e.g., invalid profileId format) | - |
| 401 | Unauthorized | - |
| 403 | No access to profile, or BYOK required for AppSumo Twitter | - |
| 404 | Profile not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetFacebookPages200Response GetFacebookPages (string accountId)
List Facebook pages
Returns all Facebook pages the connected account has access to, including the currently selected page.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetFacebookPagesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
try
{
// List Facebook pages
GetFacebookPages200Response result = apiInstance.GetFacebookPages(accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetFacebookPages: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Facebook pages
ApiResponse<GetFacebookPages200Response> response = apiInstance.GetFacebookPagesWithHttpInfo(accountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetFacebookPagesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Pages list | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetGmbLocations200Response GetGmbLocations (string accountId)
List GBP locations
Returns all Google Business Profile locations the connected account has access to, including the currently selected location.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetGmbLocationsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
try
{
// List GBP locations
GetGmbLocations200Response result = apiInstance.GetGmbLocations(accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetGmbLocations: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List GBP locations
ApiResponse<GetGmbLocations200Response> response = apiInstance.GetGmbLocationsWithHttpInfo(accountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetGmbLocationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Locations list | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetLinkedInOrganizations200Response GetLinkedInOrganizations (string accountId)
List LinkedIn orgs
Returns LinkedIn organizations (company pages) the connected account has admin access to.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetLinkedInOrganizationsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
try
{
// List LinkedIn orgs
GetLinkedInOrganizations200Response result = apiInstance.GetLinkedInOrganizations(accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetLinkedInOrganizations: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List LinkedIn orgs
ApiResponse<GetLinkedInOrganizations200Response> response = apiInstance.GetLinkedInOrganizationsWithHttpInfo(accountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetLinkedInOrganizationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string |
GetLinkedInOrganizations200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Organizations list | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPendingOAuthData200Response GetPendingOAuthData (string token)
Get pending OAuth data
Fetch pending OAuth data for headless mode using the pendingDataToken from the redirect URL. One-time use, expires after 10 minutes. No authentication required.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetPendingOAuthDataExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var token = "token_example"; // string | The pending data token from the OAuth redirect URL (pendingDataToken parameter)
try
{
// Get pending OAuth data
GetPendingOAuthData200Response result = apiInstance.GetPendingOAuthData(token);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetPendingOAuthData: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get pending OAuth data
ApiResponse<GetPendingOAuthData200Response> response = apiInstance.GetPendingOAuthDataWithHttpInfo(token);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetPendingOAuthDataWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| token | string | The pending data token from the OAuth redirect URL (pendingDataToken parameter) |
GetPendingOAuthData200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | OAuth data fetched successfully | - |
| 400 | Missing token parameter | - |
| 404 | Token not found or expired | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPinterestBoards200Response GetPinterestBoards (string accountId)
List Pinterest boards
Returns the boards available for a connected Pinterest account. Use this to get a board ID when creating a Pinterest post.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetPinterestBoardsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
try
{
// List Pinterest boards
GetPinterestBoards200Response result = apiInstance.GetPinterestBoards(accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetPinterestBoards: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Pinterest boards
ApiResponse<GetPinterestBoards200Response> response = apiInstance.GetPinterestBoardsWithHttpInfo(accountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetPinterestBoardsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Boards list | - |
| 400 | Not a Pinterest account | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetRedditFlairs200Response GetRedditFlairs (string accountId, string subreddit)
List subreddit flairs
Returns available post flairs for a subreddit. Some subreddits require a flair when posting.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetRedditFlairsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var subreddit = "subreddit_example"; // string | Subreddit name (without \"r/\" prefix) to fetch flairs for
try
{
// List subreddit flairs
GetRedditFlairs200Response result = apiInstance.GetRedditFlairs(accountId, subreddit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetRedditFlairs: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List subreddit flairs
ApiResponse<GetRedditFlairs200Response> response = apiInstance.GetRedditFlairsWithHttpInfo(accountId, subreddit);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetRedditFlairsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| subreddit | string | Subreddit name (without "r/" prefix) to fetch flairs for |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Flairs list | - |
| 400 | Not a Reddit account or missing subreddit parameter | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetRedditSubreddits200Response GetRedditSubreddits (string accountId)
List Reddit subreddits
Returns the subreddits the connected Reddit account can post to. Use this to get a subreddit name when creating a Reddit post.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetRedditSubredditsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
try
{
// List Reddit subreddits
GetRedditSubreddits200Response result = apiInstance.GetRedditSubreddits(accountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetRedditSubreddits: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Reddit subreddits
ApiResponse<GetRedditSubreddits200Response> response = apiInstance.GetRedditSubredditsWithHttpInfo(accountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetRedditSubredditsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string |
GetRedditSubreddits200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Subreddits list | - |
| 400 | Not a Reddit account | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTelegramConnectStatus200Response GetTelegramConnectStatus (string profileId)
Generate Telegram code
Generate an access code (valid 15 minutes) for connecting a Telegram channel or group. Add the bot as admin, then send the code + @yourchannel to the bot. Poll PATCH /v1/connect/telegram to check status.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class GetTelegramConnectStatusExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var profileId = "profileId_example"; // string | The profile ID to connect the Telegram account to
try
{
// Generate Telegram code
GetTelegramConnectStatus200Response result = apiInstance.GetTelegramConnectStatus(profileId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetTelegramConnectStatus: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Generate Telegram code
ApiResponse<GetTelegramConnectStatus200Response> response = apiInstance.GetTelegramConnectStatusWithHttpInfo(profileId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.GetTelegramConnectStatusWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | string | The profile ID to connect the Telegram account to |
GetTelegramConnectStatus200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Access code generated | - |
| 400 | Profile ID required or invalid format | - |
| 401 | Unauthorized | - |
| 403 | No access to this profile | - |
| 404 | Profile not found | - |
| 500 | Internal error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void HandleOAuthCallback (string platform, HandleOAuthCallbackRequest handleOAuthCallbackRequest)
Complete OAuth callback
Exchange the OAuth authorization code for tokens and connect the account to the specified profile.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class HandleOAuthCallbackExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var platform = "platform_example"; // string |
var handleOAuthCallbackRequest = new HandleOAuthCallbackRequest(); // HandleOAuthCallbackRequest |
try
{
// Complete OAuth callback
apiInstance.HandleOAuthCallback(platform, handleOAuthCallbackRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.HandleOAuthCallback: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Complete OAuth callback
apiInstance.HandleOAuthCallbackWithHttpInfo(platform, handleOAuthCallbackRequest);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.HandleOAuthCallbackWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| platform | string | ||
| handleOAuthCallbackRequest | HandleOAuthCallbackRequest |
void (empty response body)
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account connected | - |
| 400 | Invalid params | - |
| 401 | Unauthorized | - |
| 403 | BYOK required for AppSumo Twitter | - |
| 500 | Failed to connect account | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InitiateTelegramConnect200Response InitiateTelegramConnect (InitiateTelegramConnectRequest initiateTelegramConnectRequest)
Connect Telegram directly
Connect a Telegram channel/group directly using the chat ID. Alternative to the access code flow. The bot must already be an admin in the channel/group.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class InitiateTelegramConnectExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var initiateTelegramConnectRequest = new InitiateTelegramConnectRequest(); // InitiateTelegramConnectRequest |
try
{
// Connect Telegram directly
InitiateTelegramConnect200Response result = apiInstance.InitiateTelegramConnect(initiateTelegramConnectRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.InitiateTelegramConnect: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Connect Telegram directly
ApiResponse<InitiateTelegramConnect200Response> response = apiInstance.InitiateTelegramConnectWithHttpInfo(initiateTelegramConnectRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.InitiateTelegramConnectWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| initiateTelegramConnectRequest | InitiateTelegramConnectRequest |
InitiateTelegramConnect200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Telegram channel connected successfully | - |
| 400 | Chat ID required | - |
| 401 | Unauthorized | - |
| 403 | No access to this profile | - |
| 404 | Profile not found | - |
| 500 | Internal error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListFacebookPages200Response ListFacebookPages (string profileId, string tempToken)
List Facebook pages
Returns the list of Facebook Pages the user can manage after OAuth. Extract tempToken and userProfile from the OAuth redirect params and pass them here. Use the X-Connect-Token header if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ListFacebookPagesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure API key authorization: connectToken
config.AddApiKey("X-Connect-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-Connect-Token", "Bearer");
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var profileId = "profileId_example"; // string | Profile ID from your connection flow
var tempToken = "tempToken_example"; // string | Temporary Facebook access token from the OAuth callback redirect
try
{
// List Facebook pages
ListFacebookPages200Response result = apiInstance.ListFacebookPages(profileId, tempToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListFacebookPages: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Facebook pages
ApiResponse<ListFacebookPages200Response> response = apiInstance.ListFacebookPagesWithHttpInfo(profileId, tempToken);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListFacebookPagesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | string | Profile ID from your connection flow | |
| tempToken | string | Temporary Facebook access token from the OAuth callback redirect |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of Facebook Pages available for connection | - |
| 400 | Missing required parameters (profileId or tempToken) | - |
| 401 | Unauthorized | - |
| 500 | Failed to fetch pages (e.g., invalid token, insufficient permissions) | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListGoogleBusinessLocations200Response ListGoogleBusinessLocations (string profileId, string tempToken)
List GBP locations
For headless flows. Returns the list of GBP locations the user can manage. Use X-Connect-Token if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ListGoogleBusinessLocationsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure API key authorization: connectToken
config.AddApiKey("X-Connect-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-Connect-Token", "Bearer");
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var profileId = "profileId_example"; // string | Profile ID from your connection flow
var tempToken = "tempToken_example"; // string | Temporary Google access token from the OAuth callback redirect
try
{
// List GBP locations
ListGoogleBusinessLocations200Response result = apiInstance.ListGoogleBusinessLocations(profileId, tempToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListGoogleBusinessLocations: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List GBP locations
ApiResponse<ListGoogleBusinessLocations200Response> response = apiInstance.ListGoogleBusinessLocationsWithHttpInfo(profileId, tempToken);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListGoogleBusinessLocationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | string | Profile ID from your connection flow | |
| tempToken | string | Temporary Google access token from the OAuth callback redirect |
ListGoogleBusinessLocations200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of Google Business locations available for connection | - |
| 400 | Missing required parameters (profileId or tempToken) | - |
| 401 | Unauthorized | - |
| 500 | Failed to fetch locations (e.g., invalid token, insufficient permissions) | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListLinkedInOrganizations200Response ListLinkedInOrganizations (string tempToken, string orgIds)
List LinkedIn orgs
Fetch full LinkedIn organization details (logos, vanity names, websites) for custom UI. No authentication required, just the tempToken from OAuth.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ListLinkedInOrganizationsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var tempToken = "tempToken_example"; // string | The temporary LinkedIn access token from the OAuth redirect
var orgIds = 12345678,87654321,11111111; // string | Comma-separated list of organization IDs to fetch details for (max 100)
try
{
// List LinkedIn orgs
ListLinkedInOrganizations200Response result = apiInstance.ListLinkedInOrganizations(tempToken, orgIds);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListLinkedInOrganizations: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List LinkedIn orgs
ApiResponse<ListLinkedInOrganizations200Response> response = apiInstance.ListLinkedInOrganizationsWithHttpInfo(tempToken, orgIds);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListLinkedInOrganizationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| tempToken | string | The temporary LinkedIn access token from the OAuth redirect | |
| orgIds | string | Comma-separated list of organization IDs to fetch details for (max 100) |
ListLinkedInOrganizations200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Organization details fetched successfully | - |
| 400 | Missing required parameters or too many organization IDs | - |
| 500 | Failed to fetch organization details | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPinterestBoardsForSelection200Response ListPinterestBoardsForSelection (string xConnectToken, string profileId, string tempToken)
List Pinterest boards
For headless flows. Returns Pinterest boards the user can post to. Use X-Connect-Token from the redirect URL.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ListPinterestBoardsForSelectionExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var xConnectToken = "xConnectToken_example"; // string | Short-lived connect token from the OAuth redirect
var profileId = "profileId_example"; // string | Your Zernio profile ID
var tempToken = "tempToken_example"; // string | Temporary Pinterest access token from the OAuth callback redirect
try
{
// List Pinterest boards
ListPinterestBoardsForSelection200Response result = apiInstance.ListPinterestBoardsForSelection(xConnectToken, profileId, tempToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListPinterestBoardsForSelection: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Pinterest boards
ApiResponse<ListPinterestBoardsForSelection200Response> response = apiInstance.ListPinterestBoardsForSelectionWithHttpInfo(xConnectToken, profileId, tempToken);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListPinterestBoardsForSelectionWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xConnectToken | string | Short-lived connect token from the OAuth redirect | |
| profileId | string | Your Zernio profile ID | |
| tempToken | string | Temporary Pinterest access token from the OAuth callback redirect |
ListPinterestBoardsForSelection200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of Pinterest Boards available for connection | - |
| 400 | Missing required parameters | - |
| 401 | Unauthorized | - |
| 403 | No access to profile | - |
| 500 | Failed to fetch boards | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListSnapchatProfiles200Response ListSnapchatProfiles (string xConnectToken, string profileId, string tempToken)
List Snapchat profiles
For headless flows. Returns Snapchat Public Profiles the user can post to. Use X-Connect-Token from the redirect URL.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class ListSnapchatProfilesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var xConnectToken = "xConnectToken_example"; // string | Short-lived connect token from the OAuth redirect
var profileId = "profileId_example"; // string | Your Zernio profile ID
var tempToken = "tempToken_example"; // string | Temporary Snapchat access token from the OAuth callback redirect
try
{
// List Snapchat profiles
ListSnapchatProfiles200Response result = apiInstance.ListSnapchatProfiles(xConnectToken, profileId, tempToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListSnapchatProfiles: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Snapchat profiles
ApiResponse<ListSnapchatProfiles200Response> response = apiInstance.ListSnapchatProfilesWithHttpInfo(xConnectToken, profileId, tempToken);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.ListSnapchatProfilesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| xConnectToken | string | Short-lived connect token from the OAuth redirect | |
| profileId | string | Your Zernio profile ID | |
| tempToken | string | Temporary Snapchat access token from the OAuth callback redirect |
ListSnapchatProfiles200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of Snapchat Public Profiles available for connection | - |
| 400 | Missing required parameters (profileId or tempToken) | - |
| 401 | Unauthorized | - |
| 403 | No access to profile | - |
| 500 | Failed to fetch public profiles | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SelectFacebookPage200Response SelectFacebookPage (SelectFacebookPageRequest selectFacebookPageRequest)
Select Facebook page
Complete the headless flow by saving the user's selected Facebook page. Pass the userProfile from the OAuth redirect and use X-Connect-Token if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class SelectFacebookPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure API key authorization: connectToken
config.AddApiKey("X-Connect-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-Connect-Token", "Bearer");
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var selectFacebookPageRequest = new SelectFacebookPageRequest(); // SelectFacebookPageRequest |
try
{
// Select Facebook page
SelectFacebookPage200Response result = apiInstance.SelectFacebookPage(selectFacebookPageRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectFacebookPage: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Select Facebook page
ApiResponse<SelectFacebookPage200Response> response = apiInstance.SelectFacebookPageWithHttpInfo(selectFacebookPageRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectFacebookPageWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| selectFacebookPageRequest | SelectFacebookPageRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Facebook Page connected successfully | - |
| 400 | Missing required fields (profileId, pageId, or tempToken) | - |
| 401 | Unauthorized | - |
| 403 | User does not have access to the specified profile | - |
| 404 | Selected page not found in available pages | - |
| 500 | Failed to save Facebook connection | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SelectGoogleBusinessLocation200Response SelectGoogleBusinessLocation (SelectGoogleBusinessLocationRequest selectGoogleBusinessLocationRequest)
Select GBP location
Complete the headless flow by saving the user's selected GBP location. Include userProfile from the OAuth redirect (contains refresh token). Use X-Connect-Token if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class SelectGoogleBusinessLocationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure API key authorization: connectToken
config.AddApiKey("X-Connect-Token", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("X-Connect-Token", "Bearer");
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var selectGoogleBusinessLocationRequest = new SelectGoogleBusinessLocationRequest(); // SelectGoogleBusinessLocationRequest |
try
{
// Select GBP location
SelectGoogleBusinessLocation200Response result = apiInstance.SelectGoogleBusinessLocation(selectGoogleBusinessLocationRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectGoogleBusinessLocation: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Select GBP location
ApiResponse<SelectGoogleBusinessLocation200Response> response = apiInstance.SelectGoogleBusinessLocationWithHttpInfo(selectGoogleBusinessLocationRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectGoogleBusinessLocationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| selectGoogleBusinessLocationRequest | SelectGoogleBusinessLocationRequest |
SelectGoogleBusinessLocation200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Google Business location connected successfully | - |
| 400 | Missing required fields (profileId, locationId, or tempToken) | - |
| 401 | Unauthorized | - |
| 403 | User does not have access to the specified profile | - |
| 404 | Selected location not found in available locations | - |
| 500 | Failed to save Google Business connection | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SelectLinkedInOrganization200Response SelectLinkedInOrganization (SelectLinkedInOrganizationRequest selectLinkedInOrganizationRequest)
Select LinkedIn org
Complete the LinkedIn connection flow. Set accountType to "personal" or "organization" to connect as a company page. Use X-Connect-Token if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class SelectLinkedInOrganizationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var selectLinkedInOrganizationRequest = new SelectLinkedInOrganizationRequest(); // SelectLinkedInOrganizationRequest |
try
{
// Select LinkedIn org
SelectLinkedInOrganization200Response result = apiInstance.SelectLinkedInOrganization(selectLinkedInOrganizationRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectLinkedInOrganization: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Select LinkedIn org
ApiResponse<SelectLinkedInOrganization200Response> response = apiInstance.SelectLinkedInOrganizationWithHttpInfo(selectLinkedInOrganizationRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectLinkedInOrganizationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| selectLinkedInOrganizationRequest | SelectLinkedInOrganizationRequest |
SelectLinkedInOrganization200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | LinkedIn account connected | - |
| 400 | Missing required fields | - |
| 401 | Unauthorized | - |
| 500 | Failed to connect LinkedIn account | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SelectPinterestBoard200Response SelectPinterestBoard (SelectPinterestBoardRequest selectPinterestBoardRequest)
Select Pinterest board
Complete the Pinterest connection flow. After OAuth, use this endpoint to save the selected board and complete the account connection. Use the X-Connect-Token header if you initiated the connection via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class SelectPinterestBoardExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var selectPinterestBoardRequest = new SelectPinterestBoardRequest(); // SelectPinterestBoardRequest |
try
{
// Select Pinterest board
SelectPinterestBoard200Response result = apiInstance.SelectPinterestBoard(selectPinterestBoardRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectPinterestBoard: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Select Pinterest board
ApiResponse<SelectPinterestBoard200Response> response = apiInstance.SelectPinterestBoardWithHttpInfo(selectPinterestBoardRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectPinterestBoardWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| selectPinterestBoardRequest | SelectPinterestBoardRequest |
SelectPinterestBoard200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Pinterest Board connected successfully | - |
| 400 | Missing required fields | - |
| 401 | Unauthorized | - |
| 403 | No access to profile or profile limit exceeded | - |
| 500 | Failed to save Pinterest connection | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SelectSnapchatProfile200Response SelectSnapchatProfile (SelectSnapchatProfileRequest selectSnapchatProfileRequest, string? xConnectToken = null)
Select Snapchat profile
Complete the Snapchat connection flow by saving the selected Public Profile. Snapchat requires a Public Profile to publish content. Use X-Connect-Token if connecting via API key.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class SelectSnapchatProfileExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var selectSnapchatProfileRequest = new SelectSnapchatProfileRequest(); // SelectSnapchatProfileRequest |
var xConnectToken = "xConnectToken_example"; // string? | Short-lived connect token from the OAuth redirect (for API users) (optional)
try
{
// Select Snapchat profile
SelectSnapchatProfile200Response result = apiInstance.SelectSnapchatProfile(selectSnapchatProfileRequest, xConnectToken);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectSnapchatProfile: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Select Snapchat profile
ApiResponse<SelectSnapchatProfile200Response> response = apiInstance.SelectSnapchatProfileWithHttpInfo(selectSnapchatProfileRequest, xConnectToken);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.SelectSnapchatProfileWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| selectSnapchatProfileRequest | SelectSnapchatProfileRequest | ||
| xConnectToken | string? | Short-lived connect token from the OAuth redirect (for API users) | [optional] |
SelectSnapchatProfile200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Snapchat Public Profile connected successfully | - |
| 400 | Missing required fields | - |
| 401 | Unauthorized | - |
| 403 | No access to profile or profile limit exceeded | - |
| 500 | Failed to connect Snapchat account | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateFacebookPage200Response UpdateFacebookPage (string accountId, UpdateFacebookPageRequest updateFacebookPageRequest)
Update Facebook page
Switch which Facebook Page is active for a connected account.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class UpdateFacebookPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var updateFacebookPageRequest = new UpdateFacebookPageRequest(); // UpdateFacebookPageRequest |
try
{
// Update Facebook page
UpdateFacebookPage200Response result = apiInstance.UpdateFacebookPage(accountId, updateFacebookPageRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateFacebookPage: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Update Facebook page
ApiResponse<UpdateFacebookPage200Response> response = apiInstance.UpdateFacebookPageWithHttpInfo(accountId, updateFacebookPageRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateFacebookPageWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| updateFacebookPageRequest | UpdateFacebookPageRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Page updated | - |
| 400 | Page not in available pages | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateGmbLocation200Response UpdateGmbLocation (string accountId, UpdateGmbLocationRequest updateGmbLocationRequest)
Update GBP location
Switch which GBP location is active for a connected account.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class UpdateGmbLocationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var updateGmbLocationRequest = new UpdateGmbLocationRequest(); // UpdateGmbLocationRequest |
try
{
// Update GBP location
UpdateGmbLocation200Response result = apiInstance.UpdateGmbLocation(accountId, updateGmbLocationRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateGmbLocation: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Update GBP location
ApiResponse<UpdateGmbLocation200Response> response = apiInstance.UpdateGmbLocationWithHttpInfo(accountId, updateGmbLocationRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateGmbLocationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| updateGmbLocationRequest | UpdateGmbLocationRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Location updated | - |
| 400 | Location not in available locations | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectBlueskyCredentials200Response UpdateLinkedInOrganization (string accountId, UpdateLinkedInOrganizationRequest updateLinkedInOrganizationRequest)
Switch LinkedIn account type
Switch a LinkedIn account between personal profile and organization (company page) posting.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class UpdateLinkedInOrganizationExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var updateLinkedInOrganizationRequest = new UpdateLinkedInOrganizationRequest(); // UpdateLinkedInOrganizationRequest |
try
{
// Switch LinkedIn account type
ConnectBlueskyCredentials200Response result = apiInstance.UpdateLinkedInOrganization(accountId, updateLinkedInOrganizationRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateLinkedInOrganization: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Switch LinkedIn account type
ApiResponse<ConnectBlueskyCredentials200Response> response = apiInstance.UpdateLinkedInOrganizationWithHttpInfo(accountId, updateLinkedInOrganizationRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateLinkedInOrganizationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| updateLinkedInOrganizationRequest | UpdateLinkedInOrganizationRequest |
ConnectBlueskyCredentials200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Account updated | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ConnectBlueskyCredentials200Response UpdatePinterestBoards (string accountId, UpdatePinterestBoardsRequest updatePinterestBoardsRequest)
Set default Pinterest board
Sets the default board used when publishing pins for this account.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class UpdatePinterestBoardsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var updatePinterestBoardsRequest = new UpdatePinterestBoardsRequest(); // UpdatePinterestBoardsRequest |
try
{
// Set default Pinterest board
ConnectBlueskyCredentials200Response result = apiInstance.UpdatePinterestBoards(accountId, updatePinterestBoardsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdatePinterestBoards: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Set default Pinterest board
ApiResponse<ConnectBlueskyCredentials200Response> response = apiInstance.UpdatePinterestBoardsWithHttpInfo(accountId, updatePinterestBoardsRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdatePinterestBoardsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| updatePinterestBoardsRequest | UpdatePinterestBoardsRequest |
ConnectBlueskyCredentials200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Default board set | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateRedditSubreddits200Response UpdateRedditSubreddits (string accountId, UpdateRedditSubredditsRequest updateRedditSubredditsRequest)
Set default subreddit
Sets the default subreddit used when publishing posts for this Reddit account.
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Late.Api;
using Late.Client;
using Late.Model;
namespace Example
{
public class UpdateRedditSubredditsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://zernio.com/api";
// Configure Bearer token for authorization: bearerAuth
config.AccessToken = "YOUR_BEARER_TOKEN";
// create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
HttpClient httpClient = new HttpClient();
HttpClientHandler httpClientHandler = new HttpClientHandler();
var apiInstance = new ConnectApi(httpClient, config, httpClientHandler);
var accountId = "accountId_example"; // string |
var updateRedditSubredditsRequest = new UpdateRedditSubredditsRequest(); // UpdateRedditSubredditsRequest |
try
{
// Set default subreddit
UpdateRedditSubreddits200Response result = apiInstance.UpdateRedditSubreddits(accountId, updateRedditSubredditsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateRedditSubreddits: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Set default subreddit
ApiResponse<UpdateRedditSubreddits200Response> response = apiInstance.UpdateRedditSubredditsWithHttpInfo(accountId, updateRedditSubredditsRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ConnectApi.UpdateRedditSubredditsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | string | ||
| updateRedditSubredditsRequest | UpdateRedditSubredditsRequest |
UpdateRedditSubreddits200Response
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Default subreddit set | - |
| 400 | Invalid request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]