This repository provides a sample Client for subscribing to the Salesforce Pub Sub API. It is intended for working during development but not tested for production use-cases
The package supports Salesforce OAuth Client - Credentials Flows as the only authentication mechanism.
To run the package the following steps needs to be done
Rename the example configuration file src/main/resources/exampleConfiguration.copy
to src/main/resources/exampleConfiguration.yaml
.
Define myDomain , clientId and clientSecret according to the Client Credentials flow
Prerequisites : ensure that Maven is installed
- Run
$ maven clean install
- Execute the jar file using
$ java -cp target/pubsub-1.0-SNAPSHOT.jar com.sfcockpit.Main exampleConfiguration.yaml TestEvent__e
(Please note - the prefix/event/
is not required for the custom event which is passed))