Interface GetClient
- All Known Implementing Classes:
AbstractClient, ArticleMetadataClient, EODIntegrationClient, FirstRateDataIntegrationClient, ForexFactoryIntegrationClient, OpenAIIntegrationClient, SymbolAnalysisIntegrationClient
public interface GetClient
A generic HTTP client that performs GET requests.
- Version:
- 1.0.5
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringPerforms an HTTP GET request for the given url & request parameters.doGet(String endpoint, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Performs an HTTP GET request for the given url & request parameters using the supplied timeout.downloadFile(String endpoint, org.springframework.util.MultiValueMap<String, String> queryParams, String fileName) Performs an HTTP GET request to download a file at the given endpoint.
-
Method Details
-
doGet
-
doGet
String doGet(String endpoint, org.springframework.util.MultiValueMap<String, String> queryParams, int timeoutMs) Performs an HTTP GET request for the given url & request parameters using the supplied timeout.- Parameters:
endpoint- endpoint urlqueryParams- query paramstimeoutMs- request timeout in milliseconds- Returns:
- JSON string
-
downloadFile
-