1

Can I use AuthSub with PHP ? I want to use Google API with PHP but don't want to install Zend Framework.I'm goolging and not found with AuthSub class for PHP.

saturngod
  • 24,649
  • 17
  • 62
  • 87

2 Answers2

0

Google supports both AuthSub and OAuth standard. The OAuth standard is newer. PHP has support for the OAuth standard, details of which can be found in http://php.net/manual/en/book.oauth.php

tejzpr
  • 945
  • 8
  • 19
  • Fatal error: Class 'OAuth' not found :( need to install but I don't have permission to install that. I'm using share hosting. – saturngod Jan 15 '10 at 08:17
  • I try to install in MAMP. $ sudo pecl install /Applications/MAMP/bin/php5/lib/php oauth-0.99.9 but make: *** [oauth.lo] Error 1 ERROR: `make' failed – saturngod Jan 15 '10 at 08:41
  • http://code.google.com/p/oauth-php/ is a php library for OAuth. You can use it since you are on a shared host. – tejzpr Jan 15 '10 at 08:47
  • I can't find example for that. I want example look like http://www.php.net/manual/en/oauth.examples.fireeagle.php – saturngod Jan 15 '10 at 09:11
0

You can use just the GData portion of Zend: link text

I've used it successfully to connect to Google accounts, and Google Apps accounts.

Community
  • 1
  • 1
Brian
  • 1,097
  • 11
  • 11
  • it's need to install Zend Framework ,right ? I don't want to install Zend Framework. – saturngod Jan 16 '10 at 03:09
  • now, Gdata is working but Gdata don't have domain share content for Zend :( I want to use domain share content. Need to do with oAuth or Authsub with Zend. – saturngod Jan 16 '10 at 03:23
  • Nope, you don't need the whole Zend Framework, you can just get the GData stuff (at the link in the answer). I'm not sure what you mean by "domain share content" though. – Brian Jan 18 '10 at 11:15