Proxies a downstream GET request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyGetProxyRequest;
import com.apideck.unify.models.operations.ProxyGetProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyGetProxyRequest req = ProxyGetProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyGetProxyResponse res = sdk.proxy().get()
.request(req)
.call();
if (res.responseJson().isPresent()) {
// handle response
}
}
}
| Parameter |
Type |
Required |
Description |
request |
ProxyGetProxyRequest |
✔️ |
The request object to use for the request. |
ProxyGetProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |
Proxies a downstream OPTION request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyOptionsProxyRequest;
import com.apideck.unify.models.operations.ProxyOptionsProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyOptionsProxyRequest req = ProxyOptionsProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyOptionsProxyResponse res = sdk.proxy().options()
.request(req)
.call();
if (res.responseJson().isPresent()) {
// handle response
}
}
}
ProxyOptionsProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |
Proxies a downstream POST request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyPostProxyRequest;
import com.apideck.unify.models.operations.ProxyPostProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyPostProxyRequest req = ProxyPostProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyPostProxyResponse res = sdk.proxy().post()
.request(req)
.call();
}
}
| Parameter |
Type |
Required |
Description |
request |
ProxyPostProxyRequest |
✔️ |
The request object to use for the request. |
ProxyPostProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |
Proxies a downstream PUT request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyPutProxyRequest;
import com.apideck.unify.models.operations.ProxyPutProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyPutProxyRequest req = ProxyPutProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyPutProxyResponse res = sdk.proxy().put()
.request(req)
.call();
}
}
| Parameter |
Type |
Required |
Description |
request |
ProxyPutProxyRequest |
✔️ |
The request object to use for the request. |
ProxyPutProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |
Proxies a downstream PATCH request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyPatchProxyRequest;
import com.apideck.unify.models.operations.ProxyPatchProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyPatchProxyRequest req = ProxyPatchProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyPatchProxyResponse res = sdk.proxy().patch()
.request(req)
.call();
}
}
| Parameter |
Type |
Required |
Description |
request |
ProxyPatchProxyRequest |
✔️ |
The request object to use for the request. |
ProxyPatchProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |
Proxies a downstream DELETE request to a service and injects the necessary credentials into a request stored in Vault. This allows you to have an additional security layer and logging without needing to rely on Unify for normalization.
Note: Vault will proxy all data to the downstream URL and method/verb in the headers.
package hello.world;
import com.apideck.unify.Apideck;
import com.apideck.unify.models.errors.Unauthorized;
import com.apideck.unify.models.operations.ProxyDeleteProxyRequest;
import com.apideck.unify.models.operations.ProxyDeleteProxyResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Unauthorized, Exception {
Apideck sdk = Apideck.builder()
.consumerId("test-consumer")
.appId("dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX")
.apiKey(System.getenv().getOrDefault("API_KEY", ""))
.build();
ProxyDeleteProxyRequest req = ProxyDeleteProxyRequest.builder()
.serviceId("close")
.downstreamUrl("https://api.close.com/api/v1/lead")
.unifiedApi("hris")
.downstreamAuthorization("Bearer <token>")
.timeout(30000L)
.build();
ProxyDeleteProxyResponse res = sdk.proxy().delete()
.request(req)
.call();
if (res.responseJson().isPresent()) {
// handle response
}
}
}
ProxyDeleteProxyResponse
| Error Type |
Status Code |
Content Type |
| models/errors/Unauthorized |
401 |
application/json |
| models/errors/APIException |
4XX, 5XX |
*/* |