File tree Expand file tree Collapse file tree 1 file changed +25
-10
lines changed
Expand file tree Collapse file tree 1 file changed +25
-10
lines changed Original file line number Diff line number Diff line change 11# Google Cloud Translate API Samples
22
3+ ## Description
4+
35These samples show how to use the [ Google Cloud Translate API] (
46https://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
1824Console 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 )
You can’t perform that action at this time.
0 commit comments