Search K
Appearance
Appearance
Retrieves a users MQTT Credentials if set, for legacy use in connecting to MQTT.
user id
curl -X GET https://api.lightbug.cloud/api/users/id/getMqttCredentials
fetch("https://api.lightbug.cloud/api/users/id/getMqttCredentials")
.then(response => response.json())
.then(data => console.log(data));
file_get_contents("https://api.lightbug.cloud/api/users/id/getMqttCredentials");
import requests
response = requests.get("https://api.lightbug.cloud/api/users/id/getMqttCredentials")
print(response.json())