我想知道如何使用 Windows Azure Node.js SDK 获取延续令牌?例如,我现在使用 SDK 从表中检索数据:
var tableService = azure.createTableService();
tableService.getTable('UsersUserFacebookActions', function (error) {
if (error === null) {
var query = azure.TableQuery
.select()
.from('UsersUserFacebookActions')
.where('PartitionKey eq ?', userID)
.and('Kind eq ?', 'User')
.and('Deleted eq ?', 'false');
tableService.queryEntities(query, function (error, userEntities) {
if (error === null && userEntities.length > 0) {
// check to see if access token needs extending
extendAccessToken(userEntities[0], function (user) {
callback({
PartitionKey: user.PartitionKey,
RowKey: user.RowKey,
Kind: user.Kind,
EmailAddress: user.EmailAddress,
AccessToken: user.AccessToken,
TokenExpiration: user.TokenExpiration,
JoinDate: user.JoinDate,
ChannelCount: user.ChannelCount,
FollowCount: user.FollowCount,
ChannelCountString: accounting.formatNumber(user.ChannelCount),
FollowCountString: accounting.formatNumber(user.FollowCount),
Deleted: user.Deleted,
DeleteDate: user.DeleteDate
});
});
}
else callback();
});
}
else callback();
});
但是,我已经搜索了包括此站点在内的示例和文档:
https://www.windowsazure.com/en-us/develop/nodejs/
但没有遇到任何提到延续令牌的东西。
任何帮助或建议将不胜感激。