You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2024. It is now read-only.
- Or Rename `config.example.json` file with `config.json`. Open `config.json` with any text editor and change everything.
54
-
55
-
1. <b>GOOGLE_APPLICATION_CREDENTIALS</b> : Replace `service-account-file.json` in above json with the [google account credentials](https://cloud.google.com/docs/authentication/production) file name downloaded from gcloud.
56
-
> Note :- You should place your [Google Account Credentials](https://cloud.google.com/docs/authentication/production) file, `config json` and `dialogflow.php` in the root dictionary on your server. It's on you to ensure that [google account credentials](https://cloud.google.com/docs/authentication/production) file and `config.json` file are not accessible from the web!
57
-
2. <b>SESSION_ID</b> : `Session-ID`, can be any string for this purpose. However, if you are going to be using the client library to manage an entire conversation, your Session-ID must be the same across an entire
58
-
3. <b>PROJECT_ID</b> : Replace `project-id` with your project ID.
59
-
43
+
> Make sure that `service-account-file.json` file is in main directory
60
44
- Now create a web server and send a post request.
61
45
```sh
62
46
curl -Xs POST http://localhost:8080/dialogflow.php \
@@ -97,7 +81,8 @@ curl -Xs POST http://localhost:8080/dialogflow.php \
97
81
```
98
82
99
83
## Testing
100
-
- After creating `config.json` file create a php server.
84
+
- After saving the `service-account-file.json` file in main directory.
0 commit comments