@Test public void testRetrieve() throws IOException { String actualJsonStr = reformatJson(client.retrieve("Contact", new Id("0035000000km1oh"), Arrays.asList("FirstName", "LastName"))); assertJsonStringEquals(ResourceUtil.readResource("/apiResponses/retrieve.json"), actualJsonStr); }
@CheckForNull String retrieve(String sObjectType, Id id, List<String> fields) throws IOException { return executeGet("/sobjects/" + sObjectType + "/" + id, new BasicNameValuePair("fields", StringUtils.join(fields, ","))); }
HttpApiClient { @CheckForNull String retrieve(String sObjectType, Id id, List<String> fields) throws IOException { return executeGet("/sobjects/" + sObjectType + "/" + id, new BasicNameValuePair("fields", StringUtils.join(fields, ","))); } }
HttpApiClient { @CheckForNull String retrieve(String sObjectType, Id id, List<String> fields) throws IOException { return executeGet("/sobjects/" + sObjectType + "/" + id, new BasicNameValuePair("fields", StringUtils.join(fields, ","))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client); }
HttpApiClient { @CheckForNull String retrieve(String sObjectType, Id id, List<String> fields) throws IOException { return executeGet("/sobjects/" + sObjectType + "/" + id, new BasicNameValuePair("fields", StringUtils.join(fields, ","))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);  }
HttpApiClient { @CheckForNull String retrieve(String sObjectType, Id id, List<String> fields) throws IOException { return executeGet("/sobjects/" + sObjectType + "/" + id, new BasicNameValuePair("fields", StringUtils.join(fields, ","))); } HttpApiClient(@Nonnull String host, @Nonnull String oauthToken, @Nonnull ObjectMapper objectMapper,
            @Nonnull HttpClient client);   }