All URIs are relative to http://http:/v1
Method | HTTP request | Description |
---|---|---|
adminFreePassDelete | DELETE /admin/free-pass | Revokes an existing free pass |
adminFreePassPut | PUT /admin/free-pass | Creates a free pass to an article |
adminFreePassesGet | GET /admin/free-passes | Lists all free passes |
adminSearchPost | POST /admin/search | Search for users |
adminTransferPassiveSubscribersListidPost | POST /admin/transfer-passive-subscribers/{listid} | Transfers passive customers from Kayak to Mailchimp |
adminUserPost | POST /admin/user | Create a new user with admin options. |
adminUserUuidDelete | DELETE /admin/user/{uuid} | Delete user |
adminFreePassDelete(body, authUser, authorization)
Revokes an existing free pass
Marks a free pass as being revoked so that it can't be used anymore. Currently, revoked free passes can't be reinstated through Persona API (though it's possible to do so with an SQL query).
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
String body = "body_example"; // String |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
apiInstance.adminFreePassDelete(body, authUser, authorization);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminFreePassDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | String | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
null (empty response body)
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: Not defined
String adminFreePassPut(body, authUser, authorization)
Creates a free pass to an article
Free passes can be used to temporarily bypass the paywall for individual articles.
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
FreePassInput body = new FreePassInput(); // FreePassInput |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
String result = apiInstance.adminFreePassPut(body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminFreePassPut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FreePassInput | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
String
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
List<FreePass> adminFreePassesGet(authUser, authorization)
Lists all free passes
This end point returns the list of all free passes, including those that have been expired or revoked.
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<FreePass> result = apiInstance.adminFreePassesGet(authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminFreePassesGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
List<SearchResult> adminSearchPost(body, authUser, authorization)
Search for users
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
SearchQuery body = new SearchQuery(); // SearchQuery |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
List<SearchResult> result = apiInstance.adminSearchPost(body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminSearchPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SearchQuery | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
Object adminTransferPassiveSubscribersListidPost(listid, authUser, authorization)
Transfers passive customers from Kayak to Mailchimp
Passive subscribers/members/customers are users who don't have active entitlements and haven't opted out from email marketing. For the given list (audience) ID, this endpoint transfers the list of passive subscribers from Kayak to Mailchimp (via Faro).
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
String listid = null; // String |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
Object result = apiInstance.adminTransferPassiveSubscribersListidPost(listid, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminTransferPassiveSubscribersListidPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
listid | String | [default to null] | |
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
Object
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
LoginResponse adminUserPost(body, authUser, authorization)
Create a new user with admin options.
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
AdminNewUser body = new AdminNewUser(); // AdminNewUser |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
LoginResponse result = apiInstance.adminUserPost(body, authUser, authorization);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminUserPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | AdminNewUser | ||
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
adminUserUuidDelete(uuid, authUser, authorization)
Delete user
// Import classes:
//import org.openapitools.client.api.AdminApi;
AdminApi apiInstance = new AdminApi();
UUID uuid = null; // UUID |
UUID authUser = null; // UUID |
String authorization = null; // String |
try {
apiInstance.adminUserUuidDelete(uuid, authUser, authorization);
} catch (ApiException e) {
System.err.println("Exception when calling AdminApi#adminUserUuidDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uuid | UUID | [default to null] | |
authUser | UUID | [optional] [default to null] | |
authorization | String | [optional] [default to null] |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined