Skip to content

Instantly share code, notes, and snippets.

@lsongdev
Last active January 7, 2016 14:12
Show Gist options
  • Save lsongdev/06035451a39fde37a8dc to your computer and use it in GitHub Desktop.
Save lsongdev/06035451a39fde37a8dc to your computer and use it in GitHub Desktop.
send message to sentry by shell script .
#!/usr/bin/env bash
#
#
PROJECT_ID=1
SENTRY_VERSION=7
SENTRY_NAME="sentry-cli"
SENTRY_KEY=5660affd663b4e4e8f0ca25c96dce705
SENTRY_API="http://sentry.lsong.org/api/$PROJECT_ID"
ORIGIN="http://lsong.org"
curl -i -H "Origin: $ORIGIN" \
--get "$SENTRY_API/store/?sentry_version=$SENTRY_VERSION&sentry_client=$SENTRY_NAME&sentry_key=$SENTRY_KEY" \
--data-urlencode "sentry_data={\"message\":\"$1\" }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment