IdentitySet class does not have 'phone' property
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 52/100
Direzione di ricerca
Parti dal punto di ingresso del modello IdentitySet e riproduci la costruzione IdentitySet(phone=Identity(...)) riportata nell'issue. Confronta i parametri del costruttore supportati con la struttura della REST API e verifica che una destinazione phone possa essere rappresentata nel corpo della richiesta generata senza usare additional_data.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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_
- Lingua principale
- Python
- Stelle
- 630
- Fork
- 96
- Merge medio
- 15h 20m
- PR unite (30g)
- 3
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoftgraph/msgraph-sdk-python
-
status:waiting-for-triage type:bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
microsoftgraph/msgraph-sdk-python#1570 ·
-
status:waiting-for-triage type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoftgraph/msgraph-sdk-python#1563 ·
-
Needs: Attention :wave: type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoftgraph/msgraph-sdk-python#1287 · 2 commenti · 1 reazione ·
-
Batch Request Support Apertastatus:waiting-for-triage
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
microsoftgraph/msgraph-sdk-python#1557 ·
-
status:waiting-for-triage type:bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
microsoftgraph/msgraph-sdk-python#1556 · 1 commento · 1 reazione ·
Tutte le issue di microsoftgraph/msgraph-sdk-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
please add to porn list Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
StevenBlack/hosts#3255 ·