Forum Discussion

emiagin's avatar
emiagin
Copper Contributor
May 29, 2023

Import data from google sheet using api key

Hi! I tried to connected my google sheet and excel sheet. The problem is in permitions. My google sheet have not viewed by anyone and i should use some authentication. I choose api key and created this request:

let
    Source = OData.Feed("link", null, [Implementation="2.0", ApiKeyName="API_KEY_EXCEL"])
in
    Source

In auth window i entered api key. And i receive this error:

DataFormat.Error: OData: The given URL neither points to an OData service or a feed: 'https://accounts.google.com/v3/signin/identifier?<identifier>&API_KEY_EXCEL=<api-key>&continue=https://docs.google.com/spreadsheets/d/<sheet-id>/edit?API_KEY_EXCEL=<api-key>&followup=https://docs.google.com/spreadsheets/d/<sheet-id>/edit?API_KEY_EXCEL=<api-key>&ifkv=<ifkv>&ltmpl=sheets&osid=1&passive=1209600&service=wise&flowName=WebLiteSignIn&flowEntry=ServiceLogin&API_KEY_EXCEL=<api-key>'.
Details: https://accounts.google.com/v3/signin/identifier?<identifier>&API_KEY_EXCEL=<api-key>&continue=https://docs.google.com/spreadsheets/d/<sheet-id>/edit?API_KEY_EXCEL=<api-key>&followup=https://docs.google.com/spreadsheets/d/<sheet-id>/edit?API_KEY_EXCEL=<api-key&ifkv=<ifkv>&ltmpl=sheets&osid=1&passive=1209600&service=wise&flowName=WebLiteSignIn&flowEntry=ServiceLogin&API_KEY_EXCEL=<api-key>

How can i fix it?

Resources