Google Account + PHP

How could i login into google account with username and password programatically without entering into login page
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

curl functions in php which allows you to do something like that
Google have their OAuth API described here:

I decided against using it because it requires that your Google Accounts admin username and password be embedded within your source code, which seems risky to me (I'm on shared web hosting).

I did ask Google whether it's possible to create a read-only account that can simply query, say, Analytics data, without any admin access (such as changing email address, settings, etc). Google never did reply to that question.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

Ray PaseurCommented:
Before you spend too much time trying to do this with CURL (possible in theory, unlikely in practice) please contact Google and get written permission to access their web services this way.  For some of the services an API key is used.  Others are public and require no keys.

The central issue here is whether Google, as owner of the service and data, endorses your desired method of access.  If they do, you will find them very helpful in creating the tools you need to get at the data.  If they do not, they will tell you and you will have saved yourself from a lot of technical frustration and a legal nightmare.

Best of luck with your project, ~Ray
Ray PaseurCommented:
@HackneyCab: that's a great suggestion.  I believe that Twitter is going to use OAuth, too.

I use shared web hosting for lots of things and have not yet run into any issue with compromised passwords.  If you trust your web host to keep your data base, you kind of have already trusted them with something pretty important.  So I just keep my passwords out of the web root and live with that level of risk.
vineethvpAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.