Created
December 11, 2015 01:17
-
-
Save mkwatson/03f59d1a7e31bcb18060 to your computer and use it in GitHub Desktop.
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
# Get all beacons for org = 3Pd9Ql1jJ7yttGQ9PQ5NFw | |
curl -X GET \ | |
-H "Authorization: Basic <<YOUR AUTH STRING HERE>>" \ | |
-H "Content-type: application/json" \ | |
-v \ | |
"https://entities.datasnap.io/v1.0/beacon?organization_id=3Pd9Ql1jJ7yttGQ9PQ5NFw" | |
# Get beacon with identifier = 1234-5679 | |
curl -X GET \ | |
-H "Authorization: Basic <<YOUR AUTH STRING HERE>>" \ | |
-H "Content-type: application/json" \ | |
-v \ | |
"https://entities.datasnap.io/v1.0/beacon?organization_id=3Pd9Ql1jJ7yttGQ9PQ5NFw&identifier=1234-5679" | |
# Get a beacon with _id = 2 (this is what the _id happened to be when I searched above, Sorry!!!) | |
curl -X GET \ | |
-H "Authorization: Basic <<YOUR AUTH STRING HERE>>" \ | |
-H "Content-type: application/json" \ | |
-v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment