Created
January 8, 2015 23:02
-
-
Save dannycoates/249fefb5e5365e7fa2ca to your computer and use it in GitHub Desktop.
able demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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