Skip to content

Commit acf27ec

Browse files
Improve README.md.
1 parent 44f93b8 commit acf27ec

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

translate/api/README.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
# Google Cloud Translate API Samples
22

3+
## Description
4+
35
These samples show how to use the [Google Cloud Translate API](
46
https://cloud.google.com/translate/).
57

6-
## Setup
7-
8-
1. Visit the [Google API Console](
9-
https://pantheon.corp.google.com/apis/dashboard) and enable the Cloud
10-
Translate API.
11-
12-
2. Click `Credentials` -> `Create Credentials` -> `API key`. Copy the
13-
API key.
14-
15-
3. Run:
8+
## Build and Run
9+
1. **Enable APIs** - [Enable the Translate API](https://console.cloud.google.com/flows/enableapi?apiid=translate.googleapis.com)
10+
and create a new project or select an existing project.
11+
2. **Download The Credentials** - Click "Go to credentials" after enabling the APIs. Click "Create Credentials"
12+
and select "API key". Copy the API key.
13+
3. **Clone the repo** and cd into this directory
14+
```
15+
$ git clone https://github.com/GoogleCloudPlatform/php-docs-samples
16+
$ cd php-docs-samples/vision/api
17+
```
18+
4. **Install dependencies** via [Composer](http://getcomposer.org/doc/00-intro.md).
19+
Run `php composer.phar install` (if composer is installed locally) or `composer install`
20+
(if composer is installed globally).
21+
5. **Run**:
1622
```
1723
$ php translate.php
1824
Console Tool
@@ -38,3 +44,12 @@ Available commands:
3844
translate Translate text using Google Cloud Translate API
3945
```
4046

47+
6. Run `php translate.php COMMAND --help` to print information about the usage of each command.
48+
49+
## Contributing changes
50+
51+
* See [CONTRIBUTING.md](../../CONTRIBUTING.md)
52+
53+
## Licensing
54+
55+
* See [LICENSE](../../LICENSE)

0 commit comments

Comments
 (0)