Braintree/src/main/java/com/braintreepayments/api/internal/BraintreeHttpClient.java
@Override
    public void get(String path, HttpResponseCallback callback) {
        if (path == null) {
            postCallbackOnMainThread(callback, new IllegalArgumentException("Path cannot be null"));
            return;
        }

        Uri uri;
        if (path.startsWith("http")) {
            uri = Uri.parse(path);
        } else {
            uri = Uri.parse(mBaseUrl + path);
        }

        if (mAuthorization instanceof ClientToken) {
            uri = uri.buildUpon()
                    .appendQueryParameter(AUTHORIZATION_FINGERPRINT_KEY,
                            ((ClientToken) mAuthorization).getAuthorizationFingerprint())
                    .build();
        }

        super.get(uri.toString(), callback);
    }
@Override
    public void get(String path, HttpResponseCallback callback) {
        if (path == null) {
            postCallbackOnMainThread(callback, new IllegalArgumentException("Path cannot be null"));
            return;
        }

        Uri uri;
        if (path.startsWith("http")) {
            uri = Uri.parse(path);
        } else {
            uri = Uri.parse(mBaseUrl + path);
        }

        if (mAuthorization instanceof ClientToken) {
            uri = uri.buildUpon()
                    .appendQueryParameter(AUTHORIZATION_FINGERPRINT_KEY,
                            ((ClientToken) mAuthorization).getAuthorizationFingerprint())
                    .build();
        }

        super.get(uri.toString(), callback);
    }
@ Override public void get ( String path , HttpResponseCallback callback ) { if ( path == null ) { postCallbackOnMainThread ( callback , new IllegalArgumentException ( "Path cannot be null" ) ) ; return ; } Uri uri ; if ( path . startsWith ( "http" ) ) { uri = Uri . parse ( path ) ; } else { uri = Uri . parse ( mBaseUrl + path ) ; } if ( mAuthorization instanceof ClientToken ) { uri = uri . buildUpon ( ) . appendQueryParameter ( AUTHORIZATION_FINGERPRINT_KEY , ( ( ClientToken ) mAuthorization ) . getAuthorizationFingerprint ( ) ) . build ( ) ; } super . get ( uri . toString ( ) , callback ) ; }
Make a HTTP GET request to Braintree using the base url, path and authorization provided.
If the path is a full url, it will be used instead of the previously provided url.

@param path The path or url to request from the server via GET
@param callback The {@link HttpResponseCallback} to receive the response or error.
Make a HTTP GET request to Braintree using the base url path and authorization provided . If the path is a full url it will be used instead of the previously provided url .