Skip to content

Instantly share code, notes, and snippets.

@dannycoates
Created January 8, 2015 23:02
Show Gist options
  • Save dannycoates/249fefb5e5365e7fa2ca to your computer and use it in GitHub Desktop.
Save dannycoates/249fefb5e5365e7fa2ca to your computer and use it in GitHub Desktop.
able demo
#!/usr/bin/env bash
echo "able demo"
echo -e "\n\n"
echo "Get all subject attribute names"
echo "###############################"
curl -v localhost:9798/v1/fxa_content_server/attributes
echo -e "\n\n"
echo "Get all variables (unauthenticated)"
echo "###################################"
curl -v -XPOST \
-H"Content-Type: application/json" \
localhost:9798/v1/fxa_content_server/variables \
-d '{"subject": {"email":"[email protected]", "sessionId":"abcdef"}}'
echo -e "\n\n"
echo "Get one variable (unauthenticated)"
echo "###################################"
curl -v -XPOST \
-H"Content-Type: application/json" \
localhost:9798/v1/fxa_content_server/variables/avatarLinkVisible \
-d '{"subject": {"email":"[email protected]"}}'
echo -e "\n"
echo "tada!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment