Google is committed to advancing racial equity for Black communities. See how.

IRestApiHelper

public interface IRestApiHelper

com.android.tradefed.util.IRestApiHelper


A helper interface for performing REST API calls.

Summary

Public methods

abstract HttpResponse execute(String method, String[] uriParts, options, JSONObject data)

Executes an API request.

Public methods

execute

public abstract HttpResponse execute (String method, 
                String[] uriParts, 
                 options, 
                JSONObject data)

Executes an API request.

Parameters
method String: a HTTP method of the request

uriParts String: URL encoded URI parts to be used to construct the request URI.

options : unencoded parameter names and values used to construct the query string

data JSONObject: data to be sent with the request

Returns
HttpResponse a HttpResponse object