可以通过 Pebble.js 使用 Pebble 时间线吗?

Can the Pebble timeline be used via Pebble.js?

不清楚仅使用 pebble.js 方法(例如,无 C 代码)时是否支持时间轴功能。有人可以评论吗?

是的,您可以使用 Pebble.js 调用常规 PebbleKitJS 函数(例如,Pebble.getTimelineToken)。

至于将图钉推送到时间线,图钉是通过时间线 Web API 推送的,这意味着您可以使用 ajax 功能向 API 发出请求来自 Pebble.js.