Skip to content

Instantly share code, notes, and snippets.

@mkwatson
Created December 11, 2015 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkwatson/03f59d1a7e31bcb18060 to your computer and use it in GitHub Desktop.
Save mkwatson/03f59d1a7e31bcb18060 to your computer and use it in GitHub Desktop.
# 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