2017-05-24 9 views
0

drive + sheet api를 사용하고 있습니다. 현재 엑셀 시트를 CSV 형식으로 내보내고 싶지만 요청을받는 중에 콘솔에서 오류가 발생합니다.csv 내보내기 요청이 "403 Unauthenticated Use Exceeded에 대한 일일 제한"오류를 발생시킵니다.

function exportFirstCsv(excelId) 
     { 
      $.ajax({ 
       url: "https://www.googleapis.com/drive/v2/files/" + excelId + '/export', 
       type: "GET", 
       data: { 
       mimeType: 'text/csv'     
       }, 
       success: function(response) { 
       console.log('Now here'); 
       console.log(response);    
       }, 
       error: function(xhr) { 
       } 
      }); 
     } 

got error : { 
"error": { 
    "errors": [ 
    { 
    "domain": "usageLimits", 
    "reason": "dailyLimitExceededUnreg", 
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.", 
    "extendedHelp": "https://code.google.com/apis/console" 
    } 
    ], 
    "code": 403, 
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." 
} 
} 
I want to export the file. 
+0

[Google 드라이브 API 수신 오류 403 - 인증되지 않은 사용 일일 한도 초과]를 복제 할 수 있습니다. 계속 사용하려면 가입 필요] (https://stackoverflow.com/questions/15042399/receiving-error-403-in-google-drive-api-daily-limit-for-unauthenticated-use-ex) – pinoyyid

+0

나는 또한 피곤함 쿼리 매개 변수로 API 키와 함께 요청하지만 문제는 여전히 동일합니다. 승인 된 전화는 어떻게 만듭니 까? – techie

+0

https://developers.google.com/identity/protocols/OAuth2 – pinoyyid

답변

0

헤더가 포함되어 있지 않아 앱이 승인되지 않았습니다. 승인되지 않은 앱에 대한 일일 한도가 0 인 경우가 있습니다.

내가 제안 : -

1/응용 프로그램에 권한을 부여하고 인증 요청을 할 구글의 OAuth 및 방법에 대해 읽어보십시오.

2/StackOverflow에서 기존 질문을 검색하는 법을 배우십시오. 이 질문은 여러 번 묻고 답했습니다. 예 : Receiving error 403 in Google Drive API - Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup