In this quickstart we’re gonna show you how to make your first HTTP API call to SenseCAP HTTP API.
Prerequisite
If you do not have an account, please register for the SenseCAP Portal.
- China Stationhttps://sensecap.seeed.cn
- Global Stationhttps://sensecap.seeed.cc
Note: LoRaWAN devices are used with Global Station
Get an Access Key
- Login the SenseCAP Portal.
- Navigate to “Security/Access API keys”
- Click “Create Access Key”
- Click “API ID”, and get the “API ID” and “Access API keys” after entering the password.
Get all the Deivice Groups
Use curl to make an HTTP request.The following example calls the API to get all the Device Groups under the account.
-
username = API ID
-
password = Access API keys
curl --user "<username>:<password>" \
https://sensecap.seeed.cc/openapi/list_groups
You should replace
{
"code": "0",
"data": [
{
"group_name": "Default",
"group_uuid": ""
},
{
"group_name": "test group",
"group_uuid": "80523B280630E611"
},
{
"group_name": "demo",
"group_uuid": "EBAD5387C4FC8711"
}
]
}