microsoftgraph / microsoftgraph/msgraph-sdk-python
IdentitySet class does not have 'phone' property
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
When trying to make a phone call, I specify the IdentitySet of the Target user like this:
targets = [
InvitationParticipantInfo(
identity = IdentitySet(
phone = Identity(
id = "+mynumber"
)
)
)
]
However I get the following error "IdentitySet.init() got an unexpected keyword argument 'phone'" stating that this parameter is not available for the IdentitySet class.
This works when calling from the rest API
Expected behavior
Parameter should be present in the class, just like the user parameter for calling an teams userid
How to reproduce
target_identity = IdentitySet(phone=Identity(id=graph_p.phone_number))
target = InvitationParticipantInfo(
identity = target_identity
)
request_body = Call(
callback_uri = "myballback",
tenant_id = tenant_id,
source = ParticipantInfo(
identity = IdentitySet(
application = Identity(
id = bot_instance_id
)
)
),
targets = [target],
requested_modalities = [Modality.Audio],
media_config = ServiceHostedMediaConfig(
pre_fetch_media = []
)
)
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
Use IdentitySet additional_data parameter in order to inject the phone parameter to the body
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
Commencez par le point d’entrée du modèle IdentitySet et reproduisez la construction IdentitySet(phone=Identity(...)) indiquée dans l’issue. Comparez les paramètres de constructeur pris en charge avec la structure de la REST API et vérifiez qu’une cible phone peut être représentée dans le corps de la requête générée sans utiliser additional_data.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 52/100