private static void authenticateWithClientLogin(HttpTransport transport) throws IOException {
ClientLogin authenticator = new ClientLogin();
authenticator.authTokenType = "xapi";
authenticator.username = ClientLoginCredentials.ENTER_USERNAME;
authenticator.password = ClientLoginCredentials.ENTER_PASSWORD;
authenticator.authenticate().setAuthorizationHeader(transport);
}
/* Makes a prediction call to the Google Prediction API */
private static float predict(HttpTransport transport, float[] signals) throws IOException {
HttpRequest request = transport.buildPostRequest();