|
GettingStarted
This client library helps you work with Google Buzz data from your web server. This document will help explain where you can obtain the files for the client library, and how to use them in your own projects. Obtaining the client libraryThere are two options for obtaining the files for the client library. Obtaining the pre-packaged releaseMost developers will want to use the pre-packaged release, which is released according to the project roadmap and will be the most stable version of the library. To download the library, go to the Downloads tab. The most recent release of the library will be listed. After extracting the library from the archive, you will have a new buzz-php-client-x.y directory. The library files themselves are in the buzz-php-client/src directory. Obtaining the most up-to-date version from SVNThe most up-to-date version of the code is available from this project's SVN repository. Obtaining the code this way is intended for developers looking for fixes or features that have not been released in the pre-packaged version, or for developers who want to contribute patches back to the project. Obtain the code by using the following SVN checkout command (you will need an SVN client installed on your computer): svn checkout http://buzz-php-client.googlecode.com/svn/trunk/ buzz-php-client After checking out the code, you will have a new buzz-php-client directory. The library files themselves are in the buzz-php-client/src directory. What to do with the filesAfter obtaining the library in either of the ways described above, you will have a directory named buzz-php-client somewhere on your filesystem, containing the library files. Specifically, you will need to include the file src/buzz.php inside of your scripts. To be able to include buzz.php inside of your PHP scripts, you will need to tell PHP where it can find the client library. Listed below are some suggested ways of doing this. Copy the buzz-php-client directory into your projectYou can make a copy of the buzz-client-php directory for each PHP project you write. For example, if your project structure looks like this: myproject/
|- myproject.phpCopy the buzz-php-client directory into the myproject directory. You can add the following code to myproject.php to include the client library: require_once "buzz-php-client/src/buzz.php"; Setting include_path by editing php.iniIf you don't want to make a copy of the library directory for each of your projects, you can edit the php.ini PHP configuration file on your server and tell PHP where to find the client library. The line that configures include_path will contain some existing paths on your system: include_path=".:/usr/local/share/pear:/usr/local/PEAR" Add a colon, followed by the path to your osapi directory: include_path=".:/usr/local/share/pear:/usr/local/PEAR:/path/to/buzz-php-client/src" Once you restart your web server, you can include the library by using the following line in your PHP scripts: require_once "buzz.php"; Setting include_path dynamically inside of your codeIf you are unable to edit your php.ini file, you can still adjust the value of include_path inside of your PHP scripts. Just include the following code: set_include_path(get_include_path() . PATH_SEPARATOR . '/path/to/buzz-php-client/src'); require_once "buzz.php"; | |
geting file path error
testing
Thanks