Commit 7f7d461d authored by Igor Poboiko's avatar Igor Poboiko
Browse files

[calendar] Fix event move URL

Summary:
According to Google Calendar API (https://developers.google.com/calendar/v3/reference/events/move),
the proper url is `https://www.googleapis.com/calendar/v3/calendars/calendarId/events/eventId/move`

Test Plan:
1) Move event between calendars in KOrganizer
2) The change gets propagated to Google Calendar Web UI

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28160
parent b80ccd03
......@@ -187,7 +187,7 @@ QUrl removeEventUrl(const QString& calendarID, const QString& eventID)
QUrl moveEventUrl(const QString& sourceCalendar, const QString& destCalendar, const QString& eventID)
{
QUrl url(Private::GoogleApisUrl);
url.setPath(Private::CalendarBasePath % QLatin1Char('/') % sourceCalendar % QLatin1String("/events/") % eventID);
url.setPath(Private::CalendarBasePath % QLatin1Char('/') % sourceCalendar % QLatin1String("/events/") % eventID % QLatin1String("/move"));
QUrlQuery query(url);
query.addQueryItem(destinationQueryParam, destCalendar);
url.setQuery(query);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment