microsoftgraph / microsoftgraph/msgraph-sdk-php
Support nested expansion deserialization - ex Read SharePoint List
Nessuno ha ancora preso questa issue.
- Lingua principale
- PHP
- Stelle
- 669
- Fork
- 150
- Merge medio
- 15h 21m
- PR unite (30g)
- 3
Descrizione
Hi team,
I am a bit of a rookie but keen to see if this is an issue or if I am doing something wrong. I have searched everywhere but can't seem to find a solution so sorry if this is the wrong place to log this.
I am trying to read the data from a SharePoint list. It is working within the API explorer but not when I move it into PHP. In the API explorer I am hitting the below endpoint:
When I do the below code in PHP it brings back the columns but the items are coming back in an empty array:
$list = $graph->createRequest("GET", "/sites/{site-id}/lists/{list-id}/?expand=columns,items(expand=columns)")
->setReturnType(Model\Site::class)
->execute();
Any help would be really appreciated!
Thanks
Sam
AB#7976
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.
Direzione di ricerca
Inizia riproducendo la chiamata PHP createRequest per /sites/{site-id}/lists/{list-id}/?expand=columns,items(expand=columns), usando Model\Site::class come tipo restituito, e confrontala con la risposta di API Explorer. Traccia il modo in cui vengono deserializzati gli items annidati e le relative columns, quindi verifica che gli items restituiti contengano i dati espansi invece di un array vuoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- php
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 28/100