44This is a simple web-based example of calling the Google Compute Engine API
55in PHP.
66
7- ## Prerequisites:
7+ ## Prerequisites
88Please make sure that all of the following is installed before trying to run
99the sample application.
1010
11- - PHP 5.2.x or higher [ http://www.php.net/ ]
12- - PHP Curl extension [ http://www.php.net/manual/en/intro.curl.php ]
13- - PHP JSON extension [ http://php.net/manual/en/book.json.php ]
14- - The google-api-php-client library checked out locally
15- [ https://code.google.com/p/google-api-php-client/ ]
11+ - [ PHP 5.2.x or higher] ( http://www.php.net/ )
12+ - [ PHP Curl extension] ( http://www.php.net/manual/en/intro.curl.php )
13+ - [ PHP JSON extension] ( http://php.net/manual/en/book.json.php )
14+ - The [ ` google-api-php-client ` ] ( https://github.com/google/google-api-php-client )
15+ library checked out locally
1616
1717## Setup Authentication
1818NOTE: This README assumes that you have enabled access to the Google Compute
@@ -22,7 +22,7 @@ Engine API via the Google API Console page.
2222application.
2323- Click on "API Access" in the left column
2424- Click the button labeled "Create an OAuth2 client ID..." if you have not
25- generated any client IDs, or "Create another client ID..." if you have
25+ generated any client IDs, or "Create another client ID..." if you have
2626- Give your application a name and click "Next"
2727- Select "Web Application" as the "Application type"
2828- Click "Create client ID"
@@ -33,12 +33,12 @@ generated any client IDs, or "Create another client ID..." if you have
3333
34342 ) Update app.php with the redirect uri, consumer key, secret, and Project ID
3535obtained in step 1.
36- - Update ' YOUR_CLIENT_ID' with your oauth2 client id.
37- - Update ' YOUR_CLIENT_SECRET' with your oauth2 client secret.
38- - Update ' YOUR_REDIRECT_URI' with the fully qualified
39- redirect URI.
40- - Update ' YOUR_GOOGLE_COMPUTE_ENGINE_PROJECT' with your Project ID from the
41- API Console.
36+ - Update ` YOUR_CLIENT_ID ` with your oauth2 client id.
37+ - Update ` YOUR_CLIENT_SECRET ` with your oauth2 client secret.
38+ - Update ` YOUR_REDIRECT_URI ` with the fully qualified
39+ redirect URI.
40+ - Update ` YOUR_GOOGLE_COMPUTE_ENGINE_PROJECT ` with your Project ID from the
41+ API Console.
4242
4343## Running the Sample Application
44443 ) Load app.php on your web server, and visit the appropriate website in
0 commit comments