microsoftgraph / microsoftgraph/msgraph-sdk-python
Example in README has the wrong import for `GraphServiceClient`
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 630
- Forks
- 96
- Merge moyen
- 15 h 20 min
- PR mergées (30 j)
- 3
Description
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_
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Ouvrez le README et examinez la section 2.3 en comparant l’import documenté avec l’import fonctionnel depuis msgraph.graph_service_client. Mettez à jour l’exemple afin qu’il expose correctement GraphServiceClient, puis vérifiez la commande documentée dans une REPL Python en utilisant la version du msgraph SDK décrite.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 1/5
- Temps estimé
- Moins d'une heure
- Activité
- Active
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 90/100