This is a Pub/Sub API example made entirely in Ruby.
It provides the necessary to communicate with the Pub/Sub Salesforce API (Change Data Capture)
This section provides the necessary instructions to run the project as well as subscribe to a topic
The custom object that we are going to listen should already be set and created in SF.
You should perform actions like: create, edit, etc... through this created Custom Object in SF's UI
Commands
- cd to the cloned repo
bundle install
bin/console
irb:001 > example = Example::App.new
irb:002 > example.run
Subscribed to .... (topic name)
# events will appear here as soon as you perform any operations on the UI
Don't forget to add your own configurations in a new .env.local
file. It's required to have it set with your SF configs/credentials