Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:12:16+00:00 2026-06-13T16:12:16+00:00

I am trying to create a PHP web page that requires reading some data

  • 0

I am trying to create a PHP web page that requires reading some data from a google spreadsheet in my domain (I am using Google Apps Free Edition).

The spreadsheet to be read is a non-public one but is visible to some people in my domain. Since it’s non-public, I know there will be some authentication and authorization stuff even I am using the API to read it.

I found this page but there is something that I don’t understand:
http://code.google.com/intl/zh-TW/apis/spreadsheets/data/3.0/developers_guide.html#Auth

It says we should use OAuth 2.0 protocol, this is ok. But it also says during the authorizing process, “Google displays an OAuth dialog to the user, asking them to authorize your application to request some of their data.”.

My webpage will display some data read from the spreadsheet. So whenever somebody goes to my webpage, it will display a dialog to the spreadsheet owner asking for permission? Is this what it means?

Any advice will be very welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:12:17+00:00Added an answer on June 13, 2026 at 4:12 pm

    What you’re actually trying to accomplish is Server to Server authentication between your server and Google.

    This way, when a visitor enters your page/s you’ll grab data from your own spreadsheet, without any 3rd party involvement.

    I’ts possible you’ll find what you’re looking for in Google Service Account, and here

    Also,
    another solution (which is much easier to accomplish, but might have some set backs) is to use the oauth 2.0 protocol with your Google dev account (retrieved from Google Console API).

    1. If you haven’t already, create a Google Dev account (Google Console API)
    2. Generate a access/refresh token for your application with “offline” grant – meaning you can make API requests with your dev account to your spreadsheet account even when you’re not logged in with your spreadsheet account.
    3. Save the refresh token you generated and use it to generate access token over and over again (access tokens last 1 hour).

    Refresh token are not supposed to expire, but in case it would, you can always generate it again and replace the one you had with a new one, and keep generating access tokens with it.

    The major set back is in case your refresh token gets invalidated, you’ll have to manually replace it, as it will require you to re-grant access to your dev account to access your spreadsheet account.

    I hope this helps a bit.

    Meny

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a web page using php. The problem is that
I'm trying to create a web page in PHP and HTML so that I
I am trying to create a simple web crawler using PHP that is capable
I'm trying to create a large, multi-page, PHP web application for work where a
I'm currently trying to use the current session of a php web page from
I am trying to create a php file that adds a user and create
I am trying to create a php file that would scan a directory, make
I'm trying to create a PHP form on a website that collects users' name,
Here's an idea. I'm trying to create file from PHP script. File may be
Thank you for reading. I'm trying to create a HTML form so that my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.