먼저 URL은 다음과 같이 구성했습니다.
List<NameValuePair> param = new ArrayList<NameValuePair>() ;
param.add(new BasicNameValuePair("key", API_KEY)) ;
param.add(new BasicNameValuePair("source", "ko")) ;
param.add(new BasicNameValuePair("target", "en")) ;
param.add(new BasicNameValuePair("q", st)) ;
그리고 HttpGet방식으로 요청을 하면, 403 에러가 나면서
respose : {
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "ipRefererBlocked",
"message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
}
],
"code": 403,
"message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
}
}
이렇게나옵니다.
키 제대로 생성했는데 왜 200 성공이 안뜨는지 모르겠습니다.
제발 도움좀 부탁드립니다.