Search code examples
phpoauth-2.0google-oauthgoogle-docsgoogle-docs-api

Accessing google docs via a program in php and not in a browser


I want to access, view, modify Google docs but via a program written in php. I would prefer to use API protocol as it can be used by any language.

But apparently the API requires me to be signed in in a browser. Now if I want to make a server side script that apparently wont be running in a browser, how can I do that?

I didnt found any username/password/auth giving thing that returns me some token and the API can use that token.

https://developers.google.com/google-apps/spreadsheets/#changing_contents_of_a_cell

google would not know who sent the second request if it does not has the access token or some way to prove that it logged in a minut a go. in my case: the program (lets say php server)

I guess this would not help https://developers.google.com/google-apps/spreadsheets/#authorizing_requests for https://developers.google.com/google-apps/spreadsheets/#changing_contents_of_a_cell as the later has no access token option.


Solution

  • Thanks to all but I found something working exactly as required. http://framework.zend.com/manual/1.12/en/zend.gdata.html