From 889af7986c691045ba3a39e18bde6e2c81cf0f6f Mon Sep 17 00:00:00 2001 From: Jonathan Henrique Date: Tue, 21 Jun 2022 22:20:45 -0300 Subject: [PATCH] update: credentials name --- class/RequestDialogFlow.php | 2 +- credentials.json | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 credentials.json diff --git a/class/RequestDialogFlow.php b/class/RequestDialogFlow.php index 4613f1b..d4d3ee8 100644 --- a/class/RequestDialogFlow.php +++ b/class/RequestDialogFlow.php @@ -19,7 +19,7 @@ function __construct() { $root_directory = $_SERVER['DOCUMENT_ROOT']; $credentialObject = [ - 'credentials' => $root_directory.DIRECTORY_SEPARATOR.'/apigratis-uueh-aa0a417a6c4b.json', + 'credentials' => $root_directory.DIRECTORY_SEPARATOR.'/credentials.json', 'transportConfig' => [ 'rest' => [ 'httpHandler' => function (RequestInterface $request, array $options = []) use ($guzzleClient) { diff --git a/credentials.json b/credentials.json new file mode 100644 index 0000000..8997bbf --- /dev/null +++ b/credentials.json @@ -0,0 +1,12 @@ +{ + "type": "service_account", + "project_id": "apigratis-uueh", + "private_key_id": "aa0a417a6c4b7973c9c16cd650bc3e38ed851362", + "private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCx4EZHHo2w/fKz\nO9Z4VoKI/7Ks5UodmksZVAK1S5qqHO73R3HvQJfrxYij+bXMuEkfNOidBrlZe01+\nrx6aoNV/hBYYzsScrc2HJslLMAig+m42WDP7wdxbsYU2wUVa+KlQNLfpqzCLejZ0\nEh0Gjizr4Kk+kn/7TTbKs6RuVuO1aCmtiEDG+B13iV7Uhe6LZlKivH67Fe3Y6JCS\nIEST3puqI329VOE4je75YV9+iSitB3jPv0RvpCGxtmrVWCNYg118gYgWk4Qfrsw+\nGHbSciDreTLkg9Vv/3rlvjGfIN6lLx2mgpVKEJwdGWTfefsFt4GYVshxmL/0BI9Z\nu8QKa+jHAgMBAAECgg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ECgYB9HpgXn/hbCegss+AxbIh9\nbrCmUIMVmyCls5yvQcODK2uGQiRpXtKKlp7YhPwvmxg87CxShCccboUibOPv1Yr5\nKnbNHZgkp6oFD/5k7R/57y1XrDeColVr3LUtga2nI7I9wTpP6VjTyuwFYx0P1xiv\nklOxg+YE0LG728TLUyS4oA==\n-----END PRIVATE KEY-----\n", + "client_email": "dialogflow@apigratis-uueh.iam.gserviceaccount.com", + "client_id": "109399749205914445914", + "auth_uri": "https://accounts.google.com/o/oauth2/auth", + "token_uri": "https://oauth2.googleapis.com/token", + "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", + "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/dialogflow%40apigratis-uueh.iam.gserviceaccount.com" + } \ No newline at end of file