public static HttpRequestor . Response startGet ( DbxRequestConfig requestConfig , String accessToken , String sdkUserAgentIdentifier , String host , String path , /*@Nullable*/ String /*@Nullable*/ [ ] params , /*@Nullable*/ List < HttpRequestor . Header > headers ) throws NetworkIOException { headers = copyHeaders ( headers ) ; headers = addUserAgentHeader ( headers , requestConfig , sdkUserAgentIdentifier ) ; headers = addAuthHeader ( headers , accessToken ) ; String url = buildUrlWithParams ( requestConfig . getUserLocale ( ) , host , path , params ) ; try { return requestConfig . getHttpRequestor ( ) . doGet ( url , headers ) ; } catch ( IOException ex ) { throw new NetworkIOException ( ex ) ; } }
Convenience function for making HTTP GET requests .