Last active
February 20, 2020 19:01
-
-
Save blairmacintyre/377954a3d5864dcc21d10688672077e3 to your computer and use it in GitHub Desktop.
Take an appropriate json file and upload it to the hubs-cloud account
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
#!/bin/sh | |
# the HUBS_ADMIN_ACCOUNT_TOKEN can be found by logging into the admin account in your hubs-cloud instance, | |
# and then looking in your browser console, executing this: | |
# JSON.parse(localStorage.___hubs_store).credentials.token | |
# YOUR_HUBS_SERVER is the public domain of your hubs instance. e.g., for the one I created for IEEE VR it is hubs.ieeevr.online | |
# | |
(curl -XPOST -H "Content-Type: application/json" -H "Authorization: bearer HUBS_ADMIN_ACCOUNT_TOKEN" -d @file.json https://YOUR_HUBS_SERVER/api/v1/accounts) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment