ChrisUK
ChrisUK

Reputation: 687

403 error when trying to access Google Drive API in Android app

I'm trying to access the Google Drive API in my app using the guide at REST API Quickstart, however when I run the app I get a 403 forbidden error message that tells me that the Drive API is not enabled for my project.

I don't understand why this is or how to fix it. The Drive API is definitely enabled in the Google Developer's Console and is set up as with OAuth 2.0 credentials, along with any other API's that I thought might be related. The full error screen grab is shown in the link:

enter image description here

Upvotes: 2

Views: 1550

Answers (2)

sorry_I_wont
sorry_I_wont

Reputation: 658

If you used a different package name than the one in the example, then you might have forgotten to change it in the codes...like make sure you have the package name correctly set in the build.module, manifest...it happens when you just copy and paste stuff...

Upvotes: 1

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 117271

Check google developers console make sure drive SDK and drive API are enabled.

They both need to be enabled for some of the requests.

enter image description here

Upvotes: 0

Related Questions