microsoftgraph / microsoftgraph/msgraph-beta-sdk-php
Cannot request events delta without startDateTime
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- PHP
- Star
- 13
- Fork
- 8
- Merge trung bình
- 14 giờ 58 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
Describe the bug
Event delta documentation says param startDateTime is optional when working with calendars but class DeltaRequestBuilder always include it in template url causing call to fail with ODataError.
Expected behavior
When performing a normal call without any optional param to get a full delta, no error should append.
How to reproduce
$client->me()
->calendars()
->byCalendarId($remoteId)
->events()
->delta()
->get(
new DeltaRequestBuilderGetRequestConfiguration([
'Prefer' => sprintf('outlook.timezone="%s"', $local->getTimeZone()->getName())
])
)
->wait()
SDK Version
2.8.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
{
"error": {
"code": "ErrorInvalidParameter",
"message": "The value '' of parameter 'StartDateTime' is invalid."
}
}
Configuration
No response
Other information
No response
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với src/Generated/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.php và so sánh template URL của nó với tài liệu Event delta được liên kết trong issue. Tái tạo yêu cầu delta của lịch mà không có startDateTime; hoàn tất khi yêu cầu thành công mà không gặp lỗi StartDateTime không hợp lệ, trong khi các yêu cầu cung cấp tham số này vẫn hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 48/100