getApiVersion
getApiVersion()
The
getApiVersion
method returns the API version of a Response object.
The
getVersion
method populates the ApiVersion attribute of a Response object.
Return value
The Response object returns a string.
Example
The following example is an excerpt from a method which processes the response object for
getVersion
.
if(response.getStatusCode() == Response.STATUS_SUCCESS)
{
System.out.println("getVersion call processed with no warnings or errors");
System.out.println("API Version:" + response.getApiVersion());
}
Copyright IBM Corporation 2013. All Rights Reserved.