microsoftgraph / microsoftgraph/msgraph-sdk-python

Example in README has the wrong import for `GraphServiceClient`

未關閉 適合新手
#1,570 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

status:waiting-for-triage type:bug
主要語言
Python
星號
630
分支
96
平均合併
15 小時 20 分鐘
30 天內合併 PR
3

描述

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_

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

開啟 README 並檢查第 2.3 節,比較文件中的 import 與來自 msgraph.graph_service_client 的可正常運作 import。更新範例,使其正確公開 GraphServiceClient,然後使用所述版本的 msgraph SDK 在 Python REPL 中驗證文件中的命令。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
documentation
Issue 類型
文件
難度
1/5
預估耗時
1 小時以內
活躍度
活躍
描述清晰度
描述清楚
新手友好度
90/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。