I have install Dialogflow (Api.AI) Webhook into my Drupal website, but I don't know how to start with it. For example: what is the URL to set into my Dialog Flow Fulfillment webhook? Which file in the Drupal Dialogflow webhook module should I edit to response to an Intent?
Related
I am trying to send news messages to all app users. I thought about using Firebase Cloud Messaging. It is implemented on the client (Android app) and registered for a topic. Now I would like to send a message through the Firebase Console to this topic.
Is this possible? And how can I send a firebase message to a specific topic using the firebase console? I searched on the website, but did not find the option. Or is this only possible using a script (e.g. PHP) to send a message to a specific topic.
In the Notification composer of the Firebase console, enter a title and text for your message.
Then click Next.
In the next page, click the Topic button to send the message to a topic:
I have added PushNotification plugin to my OpenFire server. But I have no clue on configuring FCM (or any other push notification system) using this.
The official readme does not have much details.
Any help on where I can do the configuration will be appreciated.
PushNotification plugin doesn't have direct integration with FCM as the plugin provides implementation of XEP-0357.
If you have your own server side integration with FCM then by using CallbackOnOffline plugin, you can get http call from Openfire whenever there is an offline message in 1-1 chat.
Plugin configuration details are mentioned in it's README file.
Ok not an expert on server side coding and stuff but have a basic understanding. Here is my question;
I have firebase triggers setup on cloud functions
Now there is a requirement that I need to communicate with external servers to retrieve some other data
So I use HTTPS triggers and I followed tutorials and managed to use express and other middlewares to get the job done
The problem is, I don't think I understand how these HTTP triggers are authenticated. I obviously want only the authenticated users to make a call to these end points and my users are either iOS or Android users.
What i have already found out:
I followed the code sample in this link: https://github.com/firebase/functions-samples/blob/master/authorized-https-endpoint/functions/index.js but I have one question
It says The Firebase ID token needs to be passed as a Bearer token in the Authorization HTTP header like this: Authorization: Bearer <Firebase ID Token>
Is this token passed automatically from iOS and android clients or do I need to manually call some FirebaseAuth get token function in the mobile SDKs and manually created this authorization bearer as a part of my request url?
You need to manually call a Firebase API to get a token to pass to your backend.
This process is documented fairly thoroughly in the documentation for the Firebase Admin SDK, which you would use to verify ID tokens. That link will give you examples for Android and iOS.
The code sample you linked to also has client code for web that does the same.
I am implementing an app that only contains webhooks and doesn't mention authentication in the API documentation. Is it possible to have just an instant trigger and a webhook without a connection?
A connection's main purpose is to store the credentials (sensitive data) in one place, so if the API provides no endpoints for webhook registration or it does, but they don't require authentication, then you can just assign the webhook to the Instant Trigger and leave the webhook's connection empty.
I'm a little stuck here.
I'm trying to hook a Calendar Push Notifications (https://developers.google.com/calendar/v3/push) to a Firebase HTTPS Function.
Pratically, I use a FF to create a calendar and I want to watch it for changes.
I authorized my domain and compose a request from the first function using the appspot service account ('#appspot.gserviceaccount.com') with the scope 'https://www.googleapis.com/auth/calendar' but I always received the error message: "Unauthorized WebHook callback channel: https://******.cloudfunctions.net/calendarWebHook"}],"
I'm trying to understand if the service account doesn't have the authorization to create the watcher or the webHook or something else.