What is the process for retrieving a list of files and folders from Google Drive within my Cordova PhoneGap Android application?

After completing the authentication process in my Cordova app, I receive the access token successfully. However, when I attempt to retrieve the file list using a specific method, I encounter the following error message: 403 Forbidden.


    "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."

Below is the code snippet:


var googleapi = {
    authorize : function(options) {

        var deferred = $.Deferred();
        var authUrl = 'https://accounts.google.com/o/oauth2/auth?' + $.param({
            client_id : options.client_id,
            redirect_uri : options.redirect_uri,

            response_type : 'code',
            scope : options.scope
        });

        var authWindow = window.open(authUrl, '_blank',
                'location=no,toolbar=no');
        
        // Rest of the authorization logic goes here
        
        return deferred.promise();
    }
};

// Implementing the rest of the functionality

Upon running this code in my Cordova Android app, it displays "No files found" and the debugger indicates a 403 Forbidden error.

Answer №1

Upon receiving the error message:

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

it appears that your daily limit for unauthenticated use has been exceeded.

If you are utilizing the authentication API, please double-check to ensure that the access_token is correctly integrated when accessing the drive API. This will guarantee that your API calls utilize your authenticated information.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The information retrieved from the database query is failing to appear on my webpage

I am encountering an issue where I am unable to display product details on my webpage in a specific format after submitting an ID number through a form. The query does not show any data when submitted. My objective is to append the latest retrieved data be ...

Encountering a problem with parsing a JSON object using the .map

After receiving this JSON response, my main goal is to extract the value located in the identifier. By utilizing console.log, I am able to analyze the structure of the object: Object {rows: Array[33], time: 0.015, fields: Object, total_rows: 33} fields: O ...

Guide to showcasing associated information in HTML using Angular 7

I am a beginner with Angular 7 and I am attempting to showcase a product's color on the HTML side using Angular 7 but have not been successful. Below are my tables; Product Id Name Color Id Name ProductColorRelation Id ProductId ColorId In ...

How can a JavaScript function be imported into a React component from a location outside the src folder?

I have a utility function in my JavaScript utils.js file within the Django static files. I am looking to make this file accessible for use with React as well. I would like to import this file along with its functions into a React component. Here is an ex ...

Retrieve a true value by using either Array.some or _.some

I am looking to retrieve a truthy value from the array.Some other than "true", This is my approach: let category; arduair.aqi_ranges[pollutant].some((item,index)=> { let min = item.range[0]; let max = item.range[1]; if (_.inRange(c,min,max)){ ...

Implementing dynamic form validation with ReactJS – a step-by-step guide

I have integrated the ant design library into my demo application and now I need to implement dynamic validation for mobile numbers. There are two fields in my form: Select field Input field I want to validate the input field only when the user selects ...

Encountering the error message "Expected BEGIN_ARRAY but received BEGIN_OBJECT"

I've been facing this issue and struggling to find a solution. Despite my efforts to search online, I haven't had any luck. The problem lies in the API returning an array of objects while gson recognizes it as an object. My Model public class ...

"Maximizing the Potential of Android AppBarLayout, Toolbar, and TabLayout in Fragment-based UI

Having an activity with NavigationDrawer and AppBarLayout containing a Toolbar, I encountered an issue where a shadow appears between the toolbar and the TabLayout in a child fragment. Is there a way to display the shadow only below the TabLayout without m ...

AJAX response from open cart is returning null JSON data

Hey there, I'm having a problem with my ajax request. It seems like I keep receiving a null value for json. Let me show you the JavaScript code... <script> $(document).ready( function() { $('#donate-box-submit').on('click' ...

How can I most effectively establish defaultValues for react-hook-form in this scenario?

I am working on a static Next.js website with only frontend functionality. In the pages/feedback/[id]/edit.tsx page, I need to dynamically retrieve an id and set default values in a nested FeedbackForm component. export const FeedbackForm = ({ editing }: { ...

An issue arose during the installation of nodemon and jest, about errors with versions and a pes

Currently, I am facing an issue while trying to set up jest and nodemon for my nodejs project. My development environment includes vscode, npm version 6.13.7, and node version 13.8.0. Whenever I try to install nodemon via the command line, the console disp ...

What could be causing Vuejs to not update elements promptly?

Currently, I am encountering a scenario where I am adding options to a select element using Vue.js when the @change event of that specific element is triggered. An issue arises where the new option is not 'registered' until I exit the function. ...

Modify the line numbers in Notepad++ to exclude PHP code when counting

Is it possible to skip over code blocks in order for line numbers to adjust and exclude that specific section? For example, if I have a php code block from lines 1-88, I would like those lines to be ignored when counting lines in Notepad++. This way, line ...

Dealing with the overflow issue on Android 4.1 using position: relative and position: absolute

I have a question regarding creating a dynamically filling rounded button. I have successfully created an inner div inside the button with absolute positioning at the bottom. It works perfectly on Chrome webview, but I'm facing issues on Android 4.1. ...

Challenges faced while implementing PayU SDK in Android Studio

I have been tasked with integrating a PayU application into an Android project. After downloading the necessary files and integrating them into a new module, I encountered an error upon compiling. The error message states that the configuration 'comp ...

Learn how to effectively utilize templateURL in an express and angular project

Our project utilizes Express without any view engine. To set up static directories, we have the following: app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + '/view')); app.use(express.static(__dirname + ...

Utilizing Angular partials within specific views with the assistance of ui-router

I am currently working on developing a MEAN application and facing some challenges while handling ui-router. Within my index.html file, I have set up the template for the entire website including a header, sidebar, and content area where I have placed < ...

Creating an exportable class in Typescript and Node.js is a crucial aspect of

I've encountered an issue while trying to create a separate class file for import from the controller. It seems that declaring variables inside the class is not working as expected. Below is the class I intend to export: const fs = require("fs&q ...

What is the best way to retrieve a particular field from a Firestore Document using JavaScript?

Within my Firestore database, I have a structure of users that looks like this: https://i.sstatic.net/jgeCq.png The rules set up for this database are as follows: match /users/{userID} { match /public { allow read: if request.auth != nu ...

Extracting precise information from a JSON file using Angular's $http.get

I am struggling with extracting a specific user from a JSON file containing a user list and displaying it on an Angular index page. Despite extensive research, I have been unable to find a satisfactory solution. The user list must remain in a JSON file ins ...