Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error code 403 in Google+ api

I got "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." } When i try to fetch User Profile in Google+ api by https://www.googleapis.com/plus/v1/people/me URL String.If anyone have any suggestion then please tell me as soon as possible.Thanks in advance for your time.

like image 723
Mohd Haider Avatar asked Nov 22 '12 11:11

Mohd Haider


People also ask

What causes a 403 Forbidden error?

The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your site for some reason. The two most likely causes of this error are issues with your WordPress site's file permissions or . htaccess file.

What is code 403 forbidden?

The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it. This status is similar to 401 , but for the 403 Forbidden status code, re-authenticating makes no difference.

How do I fix Error 404 on Google Drive?

Browser troubleshooting step: - Clear the browser cache. - Try accessing the 'Class Drive' folder in Incognito/Private mode. - Try using a different browser.

What does it mean if a website is forbidden?

When you see a 403 Forbidden error, it means that you do not have permission to view the requested file or resource. Most of the time, it is due to misconfigured permissions, but it can also be intentional. When you see this error, the website is saying, "Leave and don't come back."


2 Answers

I got the same error and after much hunting I found that, in my case, the Authorization header with the access token was not set. Set Authorization: "Bearer <YOUR_ACCESS_TOKEN>" in the header of the request of EVERY Google API call.

like image 130
M.S. Nikhil Avatar answered Oct 20 '22 16:10

M.S. Nikhil


That message implies that you haven't set up a Google APIs console project.

  1. Create a Google APIs Console project
  2. On the Services pane, enable all of the APIs that your project requires.
  3. On the API Access pane, click Create an OAuth 2.0 client ID. A dialog opens. Fill in your project's information. Click Next
  4. Choose the appropriate application type. Based on the tags you used for this post, I am guessing this is an iOS project so select Installed application.
  5. Enter your bundle ID. You don't need to enter an App Store ID until your app is listed there.
  6. Click Create Client ID.

You will see the client ID and client secret values. You will use these values to enable communication with your project and the Google APIs.

If you aren't already using it, see the Google+ iOS SDK and documentation for a full walk through. The task called "write moments" is similar in implementation and demonstrates how to connect to and use the Google+ REST APIs from within an iOS project that uses the SDK.

You'll need to specify the scope of plus.me to get the profile information.

like image 22
BrettJ Avatar answered Oct 20 '22 14:10

BrettJ