extract

public static String extract(Object object)

Gets the query-string portion of an API url from a request object, by reading the object's non-null fields as endpoint parameters.

Return

the query-string portion of an API url, ready for the api key to be appended

Parameters

object

a request object with the valid API parameters


public static Request extract(Object request, String apiKey)

Builds an http request from a request object's parameters and the api key.

Return

a request targeting BASE_URL with the extracted parameters and key

Parameters

request

any endpoint request object

apiKey

Alphavantage API key