-
Notifications
You must be signed in to change notification settings - Fork 3
Generate User Token
Craig Hesling edited this page Jul 18, 2018
·
2 revisions
You can have applications interact with OpenChirp REST or MQTT with the same access level as your user. To do this without OAuth, use your User ID and generated User Token.
Here are some example use cases.
- Commandline cURL
curl -u USER_ID:USER_TOKEN https://api.openchirp.io/apiv1/device/DEVICE_ID/transducer/TRANSDUCER_NAME
- Mosquitto subscribe tool
mosquitto_sub -v -i monitor$RANDOM -h mqtt.openchirp.io -p 8883 --capath /etc/ssl/certs -u 'USER_ID' -P 'USER_TOKEN' -t 'openchirp/device/#'
The following show the steps neccesary to obtain your User ID and User Token:
- Login to OpenChirp.io using your Google account. Click
LOGIN
in the top-right corner to start. - Click on your name in the top-right corner
- Click
My Profile
- Make note of your User ID, this is tyocially refered to as
USER_ID
in other tutorials. - Click
Generate Token
. A message box should appear that says Success and contains a Token. Make note of this Token, we will typically refer to this as theUSER_TOKEN
in other tutorials.
OpenChirp is a research project started by the WiseLab at Carnegie Mellon University.
- Simple Device Tutorial
- PubSub Overview
- Time Series Data
- Device Tutorial
- Generate User Token Tutorial
- LoRaWAN Specific
-
Services
- Byte Translator
- Easybits
- Time Series Storage
- Event Trigger
- LoRaWAN Gateway
- GPS Mapper
- Custom Service
- Openchirp Packages
- REST API