Skip to content

Instantly share code, notes, and snippets.

@pooza
Last active September 18, 2022 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pooza/4c0998ebf64f57e1ad6f8d23eeb357c0 to your computer and use it in GitHub Desktop.
Save pooza/4c0998ebf64f57e1ad6f8d23eeb357c0 to your computer and use it in GitHub Desktop.
TimeTree Personal Access Token

TimeTree Personal Access Token

準備

サンプル予定

スクリーンショット 2022-09-18 17 52 14

実行

curl \
  -H "Accept: application/vnd.timetree.v1+json" \
  -H "Authorization: Bearer __YOUR_TOKEN__" \
  'https://timetreeapis.com/calendars/__YOUR_CALENDAR_ID__/upcoming_events?timezone=Asia/Tokyo&days=7&include=attendees'
{
"data": [
{
"id": "****",
"type": "event",
"attributes": {
"title": "本放送",
"all_day": false,
"start_at": "2022-09-24T00:30:00.000Z",
"start_timezone": "Asia/Tokyo",
"end_at": "2022-09-24T01:00:00.000Z",
"end_timezone": "Asia/Tokyo",
"location": "東京都",
"location_lat": null,
"location_lon": null,
"url": "https://mstdn.delmulin.com/",
"updated_at": "2022-09-18T08:49:11.919Z",
"created_at": "2022-09-18T07:47:28.555Z",
"category": "schedule",
"description": "本放送",
"recurrence": null,
"recurring_uuid": "****"
},
"relationships": {
"label": {
"data": {
"id": "****,1",
"type": "label"
}
},
"creator": {
"data": {
"id": "****,****",
"type": "user"
}
},
"attendees": {
"data": [
{
"id": "****,****",
"type": "user"
},
{
"id": "****,****",
"type": "user"
}
]
}
}
}
],
"included": [
{
"id": "****,****",
"type": "user",
"attributes": {
"name": "こんちえ",
"description": "****",
"image_url": "****"
}
},
{
"id": "****,****",
"type": "user",
"attributes": {
"name": "ぷーざ",
"description": "****",
"image_url": "****"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment