...
Code Block | ||||
---|---|---|---|---|
| ||||
Entity::Webhook.create!(name: 'Impac v2', endpoint: 'http://localhost:4000/api/v2/maestrano/finance/notifications', api_key: 'ROOT_KEY', api_secret: 'ROOT_SECRET', detailed_notifications: true, subscribed_entities: %w(Accounts Journals Company Invoices TimeActivities)) |
Alternatively, the Connec! webhooks can be managed via API, see doc: /wiki/spaces/DEV/pages/90439768.
...
Code Block |
---|
b = Bolt.create(provider: 'maestrano', name: 'finance', protocol: 'http', host: 'localhost:4001', api_path: 'api/v1', subscribed_entities: %w(Accounts Journals Company Invoices TimeActivities))
b.api_key
# => 'your decrypted api key'
b.api_secret
# => 'your decrypted api secret' |
...