code: public JSONObject getObjects(List<String> objectIDs, List<String> attributesToRetrieve, RequestOptions requestOptions) throws AlgoliaException {
      try {
        JSONArray requests = new JSONArray();
        for (String id : objectIDs) {
          JSONObject request = new JSONObject();
          request.put("indexName", this.indexName);
          request.put("objectID", id);
          request.put("attributesToRetrieve", encodeAttributes(attributesToRetrieve, false));
          requests.put(request);
        }
        JSONObject body = new JSONObject();
        body.put("requests", requests);
        return client.postRequest("/1/indexes/*/objects", body.toString(), false, false, requestOptions);
      } catch (JSONException e) {
        throw new AlgoliaException(e.getMessage());
      } catch (UnsupportedEncodingException e) {
        throw new AlgoliaException(e.getMessage());
      }
    }
docs: Get several objects from this index
  
  @param objectIDs            the array of unique identifier of objects to retrieve
  @param attributesToRetrieve contains the list of attributes to retrieve.
  @param requestOptions       Options to pass to this request