My Life Feed技能使用说明
2026-03-26
新闻来源:网淘吧
围观:58
电脑广告
手机广告
我的生活动态技能
为朋友和群组添加事项,列出我的群组
设置
- 获取您的API密钥:请所有者从“我的生活动态”应用中获取
- 设置环境变量:
export Myfeed_API_KEY="您的-api-key"
用法
所有命令都使用curl访问“我的生活动态”REST API。
创建事项并邀请一位朋友
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json"
-d '{"request":"create_thing",
"params":{
"description":"事项描述",
"start_time": 事项开始时间(纪元时间戳),
"alarms":[
{
"type": "minutes / hours / days / weeks / months",
"value": 单位数量
}
],
"invites": [
{"phone_number":"朋友的电话号码"}
]
}
}'
列出群组并获取群组ID
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json" -d '
{
"request":"get_groups",
"params":{
"starting_from": 1739383324000
}
}'| jq '.groups[] | {group_id,url_group,is_admin}'
创建事项并邀请一个群组
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json"
-d '{"request":"create_thing",
"params":{
"description":"事项描述",
"start_time": 事项开始时间(纪元时间戳,毫秒),
"alarms":[
{
"type": "minutes / hours / days / weeks / months",
"value": 单位数量
}
],
"invites": [
{"group_id":群组ID }
]
}
}'
注意事项
- 可以通过列出具有特定名称的群组来找到群组ID
- API密钥和令牌提供对您的“我的生活动态”/“MyFeed”账户的完全访问权限——请妥善保管,切勿泄露!
- 速率限制:每个API密钥每10秒3个请求;
示例
# 通过群组名称获取群组ID。现在我要查找名称中包含"friends"的群组的group_id。
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json" -d '
{
"request":"get_groups",
"params":{
"starting_from": 1739383324000
}
}'| jq '.groups[] | select(.group|contains ("friends"))'
# 添加一个事项并邀请一个群组。当您邀请一个群组时,不能同时邀请其他人。您在此邀请中为事项时间添加了2个提醒:提前10分钟和提前4小时。您正在为group_id为564564646的群组添加事项。事项时间为1770935248000。开始时间必须是将来的时间。
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json"
-d '{"request":"create_thing",
"params":{
"description":"事项描述",
"start_time": 1770935248000,
"alarms":[
{
"type": "minutes",
"value": 10
},
{
"type": "hours",
"value": 4
}
],
"invites": [
{"group_id":564564646 }
]
}
}'
# 邀请朋友参加一个事项。为他们添加提醒。在邀请中添加朋友的电话号码。格式为国家/地区前缀+电话号码,如示例所示。确保电话号码内没有+号。您在此邀请中为事项时间添加了2个提醒:提前10分钟和提前4小时。开始时间必须是将来的时间。
curl -X POST https://skill.myfeed.life/api -H "Authorization: ApiKey $Myfeed_API_KEY" -H "Content-Type: application/json"
-d '{"request":"create_thing",
"params":{
"description":"事项描述",
"start_time": 1770935248000,
"alarms":[
{
"type": "minutes",
"value": 10
},
{
"type": "hours",
"value": 4
}
],
"invites": [
{"phone_number":"19255264501"}
]
}
}'文章底部电脑广告
手机广告位-内容正文底部
上一篇:Openhue技能使用说明
下一篇:ima skills技能使用说明


微信扫一扫,打赏作者吧~