在使用firebase和我对NEST-API的访问令牌进行身份验证后,我如何从camera对象检索数据?我现在被困在这里了。
var ref = new Firebase('wss://developer-api.nest.com');
ref.authWithCustomToken(access_token, function (error, authData) {
if (error) {
console.log("Authentication Failed!", error);
} else {
console.log("Authenticated successfully with payload:", authData);
}
});发布于 2015-11-18 22:56:53
我找到了它,它很简单...
ref.on('value', function (snapshot) {
console.log(snapshot.val());
});在这里找到的-> https://brosteins.com/2014/07/20/beginning-with-the-nest-api/
https://stackoverflow.com/questions/33765399
复制相似问题