Skip to content

Add ability to fetch Google Doc API from extension #194

@bradley-erickson

Description

@bradley-erickson

We ought to be able to fetch information about a given Google Document from the extension via the Google Docs API.

This is possible to do; however, we need to add a few permission related settings to the extension's manifest.json file. We need to add an oauth2 section to the manifest detailing our client_id (from the Google API portal) and the scopes we wish to use (https://www.googleapis.com/auth/documents.readonly).

Once this is added, we should be able to call chrome.identity.getAuthToken() to fetch the user's OAuth token and include it in our headers when we query the Google Docs API for a specific document.

If data about a given document is successfully received, we should send it back to Learning Observer. The returned data will be in this structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestjavascriptPull requests that update Javascript code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions