tôi cố gắng làm cho xác thực bằng ClientLoginGoogle ClientLogin xác thực
URL url = new URL("https://www.google.com/accounts/ClientLogin");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setDoOutput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("Email", "testonly%2Ein%2E2011%40gmail%2Ecom");
connection.setRequestProperty("Passwd", "mypass");
connection.setRequestProperty("accountType", "HOSTED");
connection.setRequestProperty("service", "apps");
connection.connect();
Nhưng tôi nhận được Error=BadAuthentication
. Tôi nên sửa mã của mình như thế nào?
Tôi chạy nó ở nền tảng GAE, nếu nó quan trọng –