This Gem is bundled with an instapush binary. This binary should allow the user to send notifications from the command line.
Examples
Sending an event and passing key/secret directly to the binary:
$ instapush --key api_key --secret api_secret event_name "json-string"
Sending an event and using .instapush.yml:
$ instapush --app test event_name "json-string"
The second approach will allow the user to store app configurations in a config file. This way it's not needed to pass the key and secret over the command line and potentially leak information.
Config
applications:
- name: my-app
key: my-key
secret: my-secret
- name: my-other-app
key: my-other-key
secret: my-other-secret
This Gem is bundled with an instapush binary. This binary should allow the user to send notifications from the command line.
Examples
Sending an event and passing key/secret directly to the binary:
$ instapush --key api_key --secret api_secret event_name "json-string"Sending an event and using
.instapush.yml:The second approach will allow the user to store app configurations in a config file. This way it's not needed to pass the key and secret over the command line and potentially leak information.
Config