Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
fix: includeパラメータでAPIエラーになるのを修正
Browse files Browse the repository at this point in the history
creator, label, attendees フラグをtrueにするとOauthClient::getUpcomingEventsに失敗するのを修正
ここで修正したほうがいいのか、OauthClient::getUpcomingEventsを修正するのがいいかはちょっと判断つかなかった
  • Loading branch information
RyujiAMANO authored Jun 26, 2021
1 parent a492031 commit 4513f67
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,15 @@ public function getParams(): array
{
$data = [];
foreach ($this as $key => $value) {
if ($key === "calendarId") {
continue;
switch ($key) {
case 'calendarId':
break;
case 'include':
$data[$key] = implode(',', $value);
break;
default:
$data[$key] = $value;
}
$data[$key] = $value;
}
return $data;
}
Expand Down

0 comments on commit 4513f67

Please sign in to comment.