-
Notifications
You must be signed in to change notification settings - Fork 8
Initial Setup: Pub Sub & Frappe
Once your Google Cloud project is configured, you can set up the Pub/Sub topic and the Frappe app.
-
Go to Pub/Sub Topics and create a new topic.
-
Give it a Topic ID.
-
Select the Add a default subscription checkbox.
-
-
Next, edit the default subscription.
-
-
Change the delivery type to Push.
-
Set the Endpoint URL to
<BASE_URL>/api/method/frappe_gmail_thread.api.pubsub.callback. -
-
Finally, go back to the topic page, add permissions to the topic (not to the subscription):
-
Principal:
gmail-api-push@system.gserviceaccount.com - Role: Pub/Sub Publisher
-
Principal:
-
-
-
Save the topic name (from the subscription) for later use.
-
-
Install the app using the Bench CLI:
bench get-app git@github.com:rtCamp/frappe-gmail-thread.git bench install-app frappe_gmail_thread -
Log in as an administrator in Frappe and go to Google Settings.
-
Enable Google API.
-
Enter the Client ID and Client Secret you saved earlier.
-
Under Gmail Settings, enable Sync in Realtime and add the Pub/Sub Topic you created.
-
-