Version:
Only show these results:

Google Pub/Sub

Google Pub/Sub is a fully managed messaging and ingestion solution for event-driven systems and streaming analytics.

You’ll learn how to add Google Pub/Sub as a Nylas Stream.

Prerequisites

Before you begin, you must create grants and an integration. Nylas recommends you review the following documentation, based on your data needs:

Create a Pub/Sub Topic

Before you begin make sure you have Pub/Sub enabled. If you’re not able to find it in the menu, then search for Pub/Sub. Select the product and after a moment, it will be enabled.

The Google Console showing a search result for Pub/Sub.

  1. In your Google Console, go to Pub/Sub and create a new Topic. Give it an ID and create the topic.
  2. Create a Topic ID.
  3. Copy the project ID and enter that in your dashboard in Google Project ID.
  4. Copy the Topic ID and enter that in your dashboard in Destination Topic ID.

Create a Service Account

You’ll need to create a service account with publish access to the Pub/Sub topic you created.

  1. Go to IAM & Admin > Service Accounts, then click Create Service account.
  2. Fill out the Service account details section. This can be anything you want.
  3. For the Grant this service account access to project section, look for the Pub/Sub Publisher role.
  4. You can skip, Grant users access to this service account section.
  5. Now, you need to create a new key. Click Actions > Manage keys.
  6. Click Add key > Create new key.
  7. Choose JSON. The key will automatically download. Keep this safe.
  8. Copy your key into the dashboard in the Service Account JSON text box.
  9. If you have an existing key, make sure the key is formatted as JSON.
  10. Create your Nylas Stream.
  11. It will take a few minutes for the Stream to activate.

Test Your Integration

Make sure you're able to receive data.

Message

If you selected message.create as your data source, create a new email message.

Grants

If you selected grants as your data source, you’ll get notifications when a grant expires or when an account is granted access to an Integration.

The Google Cloud Platform Console showing the "Subscriptions" page. A list of messages is displayed.