Skip to content

Instantly share code, notes, and snippets.

@patrickhammond
Last active April 30, 2018 21:22
Show Gist options
  • Save patrickhammond/1e1275de180f2b2395fa to your computer and use it in GitHub Desktop.
Save patrickhammond/1e1275de180f2b2395fa to your computer and use it in GitHub Desktop.
Simple script to display info associated with your Crashlytics account.
#!/bin/sh
echo "Crashlytics username (e-mail):"
read email
echo "Crashlytics password:"
read -s password
data="{\"email\":\"${email}\",\"password\":\"${password}\"}"
curl \
--header "Content-Type: application/json" \
--header "X-CRASHLYTICS-DEVELOPER-TOKEN: ed8fc3dc68a7475cc970eb1e9c0cb6603b0a3ea2" \
--data ${data} \
https://api.crashlytics.com/api/v2/session.json | python -mjson.tool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment