All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| bookmarkPost | POST /v1/twitter/bookmark | Bookmark a tweet |
| bookmarkPostWithHttpInfo | POST /v1/twitter/bookmark | Bookmark a tweet |
| followUser | POST /v1/twitter/follow | Follow a user |
| followUserWithHttpInfo | POST /v1/twitter/follow | Follow a user |
| removeBookmark | DELETE /v1/twitter/bookmark | Remove bookmark |
| removeBookmarkWithHttpInfo | DELETE /v1/twitter/bookmark | Remove bookmark |
| retweetPost | POST /v1/twitter/retweet | Retweet a post |
| retweetPostWithHttpInfo | POST /v1/twitter/retweet | Retweet a post |
| undoRetweet | DELETE /v1/twitter/retweet | Undo retweet |
| undoRetweetWithHttpInfo | DELETE /v1/twitter/retweet | Undo retweet |
| unfollowUser | DELETE /v1/twitter/follow | Unfollow a user |
| unfollowUserWithHttpInfo | DELETE /v1/twitter/follow | Unfollow a user |
BookmarkPost200Response bookmarkPost(bookmarkPostRequest)
Bookmark a tweet
Bookmark a tweet by ID. Requires the bookmark.write OAuth scope. Rate limit: 50 requests per 15-min window.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
BookmarkPostRequest bookmarkPostRequest = new BookmarkPostRequest(); // BookmarkPostRequest |
try {
BookmarkPost200Response result = apiInstance.bookmarkPost(bookmarkPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#bookmarkPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| bookmarkPostRequest | BookmarkPostRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Tweet bookmarked | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse bookmarkPost bookmarkPostWithHttpInfo(bookmarkPostRequest)
Bookmark a tweet
Bookmark a tweet by ID. Requires the bookmark.write OAuth scope. Rate limit: 50 requests per 15-min window.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
BookmarkPostRequest bookmarkPostRequest = new BookmarkPostRequest(); // BookmarkPostRequest |
try {
ApiResponse<BookmarkPost200Response> response = apiInstance.bookmarkPostWithHttpInfo(bookmarkPostRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#bookmarkPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| bookmarkPostRequest | BookmarkPostRequest |
ApiResponse<BookmarkPost200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Tweet bookmarked | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
FollowUser200Response followUser(followUserRequest)
Follow a user
Follow a user on X/Twitter. Requires the follows.write OAuth scope. For protected accounts, a follow request is sent instead (pending_follow will be true).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
FollowUserRequest followUserRequest = new FollowUserRequest(); // FollowUserRequest |
try {
FollowUser200Response result = apiInstance.followUser(followUserRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#followUser");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| followUserRequest | FollowUserRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User followed or follow request sent | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse followUser followUserWithHttpInfo(followUserRequest)
Follow a user
Follow a user on X/Twitter. Requires the follows.write OAuth scope. For protected accounts, a follow request is sent instead (pending_follow will be true).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
FollowUserRequest followUserRequest = new FollowUserRequest(); // FollowUserRequest |
try {
ApiResponse<FollowUser200Response> response = apiInstance.followUserWithHttpInfo(followUserRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#followUser");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| followUserRequest | FollowUserRequest |
ApiResponse<FollowUser200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User followed or follow request sent | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
RemoveBookmark200Response removeBookmark(accountId, tweetId)
Remove bookmark
Remove a bookmark from a tweet.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String tweetId = "tweetId_example"; // String | The ID of the tweet to unbookmark
try {
RemoveBookmark200Response result = apiInstance.removeBookmark(accountId, tweetId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#removeBookmark");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| tweetId | String | The ID of the tweet to unbookmark |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bookmark removed | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse removeBookmark removeBookmarkWithHttpInfo(accountId, tweetId)
Remove bookmark
Remove a bookmark from a tweet.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String tweetId = "tweetId_example"; // String | The ID of the tweet to unbookmark
try {
ApiResponse<RemoveBookmark200Response> response = apiInstance.removeBookmarkWithHttpInfo(accountId, tweetId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#removeBookmark");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| tweetId | String | The ID of the tweet to unbookmark |
ApiResponse<RemoveBookmark200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Bookmark removed | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
RetweetPost200Response retweetPost(retweetPostRequest)
Retweet a post
Retweet (repost) a tweet by ID. Rate limit: 50 requests per 15-min window. Shares the 300/3hr creation limit with tweet creation.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
RetweetPostRequest retweetPostRequest = new RetweetPostRequest(); // RetweetPostRequest |
try {
RetweetPost200Response result = apiInstance.retweetPost(retweetPostRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#retweetPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| retweetPostRequest | RetweetPostRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Tweet retweeted | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse retweetPost retweetPostWithHttpInfo(retweetPostRequest)
Retweet a post
Retweet (repost) a tweet by ID. Rate limit: 50 requests per 15-min window. Shares the 300/3hr creation limit with tweet creation.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
RetweetPostRequest retweetPostRequest = new RetweetPostRequest(); // RetweetPostRequest |
try {
ApiResponse<RetweetPost200Response> response = apiInstance.retweetPostWithHttpInfo(retweetPostRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#retweetPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| retweetPostRequest | RetweetPostRequest |
ApiResponse<RetweetPost200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Tweet retweeted | - |
| 400 | Bad request or platform limitation | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
UndoRetweet200Response undoRetweet(accountId, tweetId)
Undo retweet
Undo a retweet (un-repost a tweet).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String tweetId = "tweetId_example"; // String | The ID of the original tweet to un-retweet
try {
UndoRetweet200Response result = apiInstance.undoRetweet(accountId, tweetId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#undoRetweet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| tweetId | String | The ID of the original tweet to un-retweet |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Retweet undone | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse undoRetweet undoRetweetWithHttpInfo(accountId, tweetId)
Undo retweet
Undo a retweet (un-repost a tweet).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String tweetId = "tweetId_example"; // String | The ID of the original tweet to un-retweet
try {
ApiResponse<UndoRetweet200Response> response = apiInstance.undoRetweetWithHttpInfo(accountId, tweetId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#undoRetweet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| tweetId | String | The ID of the original tweet to un-retweet |
ApiResponse<UndoRetweet200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Retweet undone | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
UnfollowUser200Response unfollowUser(accountId, targetUserId)
Unfollow a user
Unfollow a user on X/Twitter.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String targetUserId = "targetUserId_example"; // String | The Twitter ID of the user to unfollow
try {
UnfollowUser200Response result = apiInstance.unfollowUser(accountId, targetUserId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#unfollowUser");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| targetUserId | String | The Twitter ID of the user to unfollow |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User unfollowed | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |
ApiResponse unfollowUser unfollowUserWithHttpInfo(accountId, targetUserId)
Unfollow a user
Unfollow a user on X/Twitter.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.TwitterEngagementApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TwitterEngagementApi apiInstance = new TwitterEngagementApi(defaultClient);
String accountId = "accountId_example"; // String |
String targetUserId = "targetUserId_example"; // String | The Twitter ID of the user to unfollow
try {
ApiResponse<UnfollowUser200Response> response = apiInstance.unfollowUserWithHttpInfo(accountId, targetUserId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling TwitterEngagementApi#unfollowUser");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| accountId | String | ||
| targetUserId | String | The Twitter ID of the user to unfollow |
ApiResponse<UnfollowUser200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | User unfollowed | - |
| 400 | Bad request | - |
| 401 | Unauthorized | - |
| 404 | Account not found | - |