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 1
1
# Google Cloud Translate API Samples
2
2
3
+ ## Description
4
+
3
5
These samples show how to use the [ Google Cloud Translate API] (
4
6
https://cloud.google.com/translate/ ).
5
7
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** :
16
22
```
17
23
$ php translate.php
18
24
Console Tool
@@ -38,3 +44,12 @@ Available commands:
38
44
translate Translate text using Google Cloud Translate API
39
45
```
40
46
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