All URIs are relative to https://api.egoiapp.com
Method | HTTP request | Description |
---|---|---|
createCellphoneSender | POST /senders/cellphone | Create cellphone sender |
createEmailSender | POST /senders/email | Create email sender |
createPhoneSender | POST /senders/phone | Create phone sender |
deleteCellphoneSender | DELETE /senders/cellphone/{sender_id} | Remove cellphone sender |
deleteEmailSender | DELETE /senders/email/{sender_id} | Remove email sender |
deletePhoneSender | DELETE /senders/phone/{sender_id} | Remove phone sender |
getAllCellphoneSenders | GET /senders/cellphone | Get all cellphone senders |
getAllEmailSenders | GET /senders/email | Get all email senders |
getAllPhoneSenders | GET /senders/phone | Get all phone senders |
putEmailSender | PUT /senders/email/{sender_id} | Update email sender |
CellphoneSender createCellphoneSender(cellphoneSender)
Create cellphone sender
Creates a cellphone sender
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
CellphoneSender cellphoneSender = new CellphoneSender(); // CellphoneSender | Parameters for the sender
try {
CellphoneSender result = apiInstance.createCellphoneSender(cellphoneSender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#createCellphoneSender");
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 |
---|---|---|---|
cellphoneSender | CellphoneSender | Parameters for the sender |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
EmailSender createEmailSender(emailSender)
Create email sender
Creates an email sender
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
EmailSender emailSender = new EmailSender(); // EmailSender | Parameters for the sender
try {
EmailSender result = apiInstance.createEmailSender(emailSender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#createEmailSender");
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 |
---|---|---|---|
emailSender | EmailSender | Parameters for the sender |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
PhoneSender createPhoneSender(phoneSender)
Create phone sender
Creates a phone sender
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
PhoneSender phoneSender = new PhoneSender(); // PhoneSender | Parameters for the sender
try {
PhoneSender result = apiInstance.createPhoneSender(phoneSender);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#createPhoneSender");
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 |
---|---|---|---|
phoneSender | PhoneSender | Parameters for the sender |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | Created | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
409 | Conflict | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
deleteCellphoneSender(senderId)
Remove cellphone sender
Remove sender information given its ID
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer senderId = 56; // Integer | ID of the Sender
try {
apiInstance.deleteCellphoneSender(senderId);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#deleteCellphoneSender");
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 |
---|---|---|---|
senderId | Integer | ID of the Sender |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
409 | Conflict | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
deleteEmailSender(senderId)
Remove email sender
Remove sender information given its ID
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer senderId = 56; // Integer | ID of the Sender
try {
apiInstance.deleteEmailSender(senderId);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#deleteEmailSender");
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 |
---|---|---|---|
senderId | Integer | ID of the Sender |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
409 | Conflict | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
deletePhoneSender(senderId)
Remove phone sender
Remove sender information given its ID
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer senderId = 56; // Integer | ID of the Sender
try {
apiInstance.deletePhoneSender(senderId);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#deletePhoneSender");
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 |
---|---|---|---|
senderId | Integer | ID of the Sender |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
409 | Conflict | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
CellphoneSenderCollection getAllCellphoneSenders(offset, limit, status)
Get all cellphone senders
Returns all cellphone senders
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer offset = 56; // Integer | Element offset (starting at zero for the first element)
Integer limit = 10; // Integer | Number of items to return
String status = "status_example"; // String | Status filter
try {
CellphoneSenderCollection result = apiInstance.getAllCellphoneSenders(offset, limit, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getAllCellphoneSenders");
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 |
---|---|---|---|
offset | Integer | Element offset (starting at zero for the first element) | [optional] |
limit | Integer | Number of items to return | [optional] [default to 10] |
status | String | Status filter | [optional] [enum: active, moderation, rejected] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
EmailSenderCollection getAllEmailSenders(offset, limit, status)
Get all email senders
Returns all email senders
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer offset = 56; // Integer | Element offset (starting at zero for the first element)
Integer limit = 10; // Integer | Number of items to return
String status = "status_example"; // String | Status filter
try {
EmailSenderCollection result = apiInstance.getAllEmailSenders(offset, limit, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getAllEmailSenders");
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 |
---|---|---|---|
offset | Integer | Element offset (starting at zero for the first element) | [optional] |
limit | Integer | Number of items to return | [optional] [default to 10] |
status | String | Status filter | [optional] [enum: active, moderation, rejected] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
PhoneSenderCollection getAllPhoneSenders(offset, limit, status)
Get all phone senders
Returns all phone senders
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer offset = 56; // Integer | Element offset (starting at zero for the first element)
Integer limit = 10; // Integer | Number of items to return
String status = "status_example"; // String | Status filter
try {
PhoneSenderCollection result = apiInstance.getAllPhoneSenders(offset, limit, status);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#getAllPhoneSenders");
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 |
---|---|---|---|
offset | Integer | Element offset (starting at zero for the first element) | [optional] |
limit | Integer | Number of items to return | [optional] [default to 10] |
status | String | Status filter | [optional] [enum: active, moderation, rejected] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
403 | Forbidden | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |
EmailSender putEmailSender(senderId, emailSenderPutRequest)
Update email sender
Updates an email sender
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.auth.*;
import org.egoi.client.models.*;
import org.egoi.client.api.SendersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");
SendersApi apiInstance = new SendersApi(defaultClient);
Integer senderId = 56; // Integer | ID of the Sender
EmailSenderPutRequest emailSenderPutRequest = new EmailSenderPutRequest(); // EmailSenderPutRequest | Parameters for the contact
try {
EmailSender result = apiInstance.putEmailSender(senderId, emailSenderPutRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SendersApi#putEmailSender");
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 |
---|---|---|---|
senderId | Integer | ID of the Sender | |
emailSenderPutRequest | EmailSenderPutRequest | Parameters for the contact |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
400 | Bad Request | - |
401 | Unauthorized | - |
403 | Forbidden | - |
404 | Not Found | - |
408 | Request Timeout | - |
422 | Unprocessable Entity | - |
429 | Too Many Requests | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |