From a8a4d8187d33ac6e6eb484ec8285131666cb8c2e Mon Sep 17 00:00:00 2001 From: David Supplee Date: Thu, 20 Jun 2019 08:28:04 -0700 Subject: [PATCH] docs: Update links in README to point to new docs living inside repo (#1670) * docs: Update links in README to point to new docs living inside repo * docs: use correct link --- README.md | 8 ++++---- docs/oauth-server.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4911151b0..9d64d855a 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Uncompress the zip file you download, and include the autoloader in your project require_once '/path/to/google-api-php-client/vendor/autoload.php'; ``` -For additional installation and setup instructions, see [the documentation](https://developers.google.com/api-client-library/php/start/installation). +For additional installation and setup instructions, see [the documentation](docs/). ## Examples ## See the [`examples/`](examples) directory for examples of the key client features. You can @@ -86,7 +86,7 @@ foreach ($results as $item) { > An example of this can be seen in [`examples/simple-file-upload.php`](examples/simple-file-upload.php). -1. Follow the instructions to [Create Web Application Credentials](https://developers.google.com/api-client-library/php/auth/web-app#creatingcred) +1. Follow the instructions to [Create Web Application Credentials](docs/oauth-web.md#create-authorization-credentials) 1. Download the JSON credentials 1. Set the path to these credentials using `Google_Client::setAuthConfig`: @@ -127,7 +127,7 @@ Some APIs not support service accounts. Check with the specific API documentation if API calls return unexpected 401 or 403 errors. -1. Follow the instructions to [Create a Service Account](https://developers.google.com/api-client-library/php/auth/service-accounts#creatinganaccount) +1. Follow the instructions to [Create a Service Account](docs/oauth-server.md#creating-a-service-account) 1. Download the JSON credentials 1. Set the path to these credentials using the `GOOGLE_APPLICATION_CREDENTIALS` environment variable: @@ -341,7 +341,7 @@ YouTube: https://github.com/youtube/api-samples/tree/master/php ## How Do I Contribute? ## -Please see the [contributing](.github/CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the [contributor license agreement](https://developers.google.com/api-client-library/php/contribute). +Please see the [contributing](.github/CONTRIBUTING.md) page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement. ## Frequently Asked Questions ## diff --git a/docs/oauth-server.md b/docs/oauth-server.md index f8db920be..cba985435 100644 --- a/docs/oauth-server.md +++ b/docs/oauth-server.md @@ -94,7 +94,7 @@ Use the authorized `Google_Client` object to call Google APIs by completing the $sqladmin = new Google_Service_SQLAdmin($client); ``` -2. Make requests to the API service using the [interface provided by the service object](https://developers.google.com/api-client-library/php/start/get_started#build). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: +2. Make requests to the API service using the [interface provided by the service object](https://github.com/googleapis/google-api-php-client/blob/master/docs/start.md#build-the-service-object). For example, to list the instances of Cloud SQL databases in the examinable-example-123 project: ```php $response = $sqladmin->instances->listInstances('examinable-example-123')->getItems(); @@ -141,4 +141,4 @@ $sqladmin = new Google_Service_SQLAdmin($client); $response = $sqladmin->instances ->listInstances('examinable-example-123')->getItems(); echo json_encode($response) . "\n"; -``` \ No newline at end of file +```