All URIs are relative to http://proxiedmail.com
Method | HTTP request | Description |
---|---|---|
addProxyBinding | POST /api/v1/proxy-bindings | Create proxy-email |
apiV1ProxyBindingsGet | GET /api/v1/proxy-bindings | List of proxy emails |
patchProxyBinding | PATCH /api/v1/proxy-bindings/{id} | Update proxy-email |
AddProxyBinding200Response addProxyBinding(opts)
Create proxy-email
import ProxiedMailApi from 'proxied_mail_api';
let defaultClient = ProxiedMailApi.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new ProxiedMailApi.ProxyBindingApi();
let opts = {
'proxyBindingCreate': [new ProxiedMailApi.ProxyBindingCreate()] // [ProxyBindingCreate] |
};
apiInstance.addProxyBinding(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
proxyBindingCreate | [ProxyBindingCreate] | [optional] |
- Content-Type: application/json
- Accept: application/json
ApiV1ProxyBindingsGet200Response apiV1ProxyBindingsGet()
List of proxy emails
import ProxiedMailApi from 'proxied_mail_api';
let defaultClient = ProxiedMailApi.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new ProxiedMailApi.ProxyBindingApi();
apiInstance.apiV1ProxyBindingsGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
ApiV1ProxyBindingsGet200Response
- Content-Type: Not defined
- Accept: application/json
AddProxyBinding200Response patchProxyBinding(id, opts)
Update proxy-email
import ProxiedMailApi from 'proxied_mail_api';
let defaultClient = ProxiedMailApi.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
let apiInstance = new ProxiedMailApi.ProxyBindingApi();
let id = "id_example"; // String | ID of proxy-email that needs to be fetched
let opts = {
'patchProxyBindingRequestInner': [new ProxiedMailApi.PatchProxyBindingRequestInner()] // [PatchProxyBindingRequestInner] |
};
apiInstance.patchProxyBinding(id, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of proxy-email that needs to be fetched | |
patchProxyBindingRequestInner | [PatchProxyBindingRequestInner] | [optional] |
- Content-Type: application/json
- Accept: application/json