lundi 6 juin 2016

dailyLimitExceededUnreg: Daily Limit for Unauthenticated Use Exceeded

Note: Before Posting i read similar questions in stack overflow.

Hi, I am using google-api-client -v '0.9.8' newer i am getting issue

client_secrets = Google::APIClient::ClientSecrets.load("/home/secrets.json")
@auth_client = client_secrets.to_authorization
        @auth_client.update!(
          :scope => 'http://ift.tt/16kSG6F',
          :access_type => "offline", #will make refresh_token available
          :approval_prompt =>'force',
          :redirect_uri => 'http://someurl.com'
        )
 url = @auth_client.authorization_uri 
link = "http://ift.tt/24sZwku}" 

when you click on link a url will it will be redirected to a page where code will be genrated

@auth_client.code = "generated code"
@auth_client.fetch_access_token!

To Generate access_token and refresh_token

service = Google::Apis::CalendarV3::CalendarService.new
response = service.list_events('primary',max_results: 10,single_events: true,order_by: 'startTime',time_min: Time.now.iso8601)

This point issue will arise

dailyLimitExceededUnreg: Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.

FYI I enabled google calendar api in google developer console.

If anyone resolved this issue please let me know.

Aucun commentaire:

Enregistrer un commentaire