microsoftgraph / microsoftgraph/msgraph-sdk-python
Example in README has the wrong import for `GraphServiceClient`
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 630
- Fork
- 96
- Merge trung bình
- 15 giờ 20 phút
- Pull request đã merge (30 ngày)
- 3
Mô tả
Describe the bug
In section 2.3, the README has
from msgraph import GraphServiceClient
whereas
from msgraph.graph_service_client import GraphServiceClient
seems to work
Expected behavior
Please clarify or fix README
How to reproduce
install msgraph sdk
In a python repl
import msgraph
dir(msgraph) # this will show no GraphServiceClient
dir(msgraph.graph_service_client) will show GraphServiceClient
SDK Version
1.61.0
Latest version known to work for scenario above?
No response
Known Workarounds
use from msgraph.graph_service_client import GraphServiceClient
Debug output
Click to expand log
```</details>
### 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
Mở README và kiểm tra mục 2.3, so sánh import được ghi trong tài liệu với import đang hoạt động từ msgraph.graph_service_client. Cập nhật ví dụ để nó expose GraphServiceClient một cách chính xác, sau đó xác minh lệnh được ghi trong tài liệu bằng Python REPL sử dụng phiên bản msgraph SDK được mô tả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- documentation
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 90/100