I am trying to use the Kroger API and need to add query parameters to get the data I need. Thanks for the help!
Example from the docs: filter.term=milk
https://developer.kroger.com/reference#operation/productGet
Code:
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.kroger.com/v1/products/0001111041700")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer " + TOKEN)
.build();
Response response = client.newCall(request).execute();
System.out.println(response);