2016-10-11 3 views
1

R에서 Analytics API를 통해 Google Analytics에 연결하려고합니다. 다음은 내 코드입니다. 나는 위의 명령을 실행하면RStudio & RGoogleAnalytics주는 오류 : redirect_uri_mismatch

library(RGoogleAnalytics) 

oauth_token <- Auth(client.id = "clientID", client.secret = "clientSecret") 

그것은 나를

Error: redirect_uri_mismatch 
The redirect URI in the request, http://localhost:1410/, does not match the ones authorized for the OAuth client. 

내가

Authorised JavaScript origins : http://localhost:1410 
Authorised redirect URIs: http://localhost:8080/oauth2callback 

이 도와주세요 구글 개발자 콘솔에서 설정 다음 한 브라우저에서 오류를 다음 수 있습니다.

답변

-1

리디렉션 URI를 동일한 포트로 업데이트해야합니다.

http://localhost:1410/oauth2callback

문제가 해결되지 않으면, 새로운 클라이언트 비밀 JSON 파일을 만듭니다. 응용 유형으로 "기타"를 사용하십시오.

+0

작동하지 않습니다. 내가 누락 된 것이 있습니까? – Neil