views:

593

answers:

3
+1  Q: 

AuthSub with PHP

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.

A: 

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

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

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.

Brian
it's need to install Zend Framework ,right ? I don't want to install Zend Framework.
saturngod
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
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
A: 

I'm working on a school project where I can't use the zend framework at all, neither as a download of files. I want to connect to the youtube API, and need to use my autorization token in php somehow. Ive tried what I found here (OAuth): http://www.php.net/manual/en/oauth.getrequesttoken.php but don't understand how I'm supposed to implement this in with a URL of my youtube account. I suppose this is possible somehow, without hundred lines of code. (I'm no php-expert either :p) Does anyone know? Thx a bunch.

poepje