microsoftgraph / microsoftgraph/msgraph-sdk-php
Support nested expansion deserialization - ex Read SharePoint List
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 669
- Forks
- 150
- Ø Merge
- 15 Std. 21 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, den PHP-Aufruf createRequest für /sites/{site-id}/lists/{list-id}/?expand=columns,items(expand=columns) unter Verwendung von Model\Site::class als Rückgabetyp nachzubilden und ihn mit der Antwort des API Explorer zu vergleichen. Verfolgen Sie, wie verschachtelte items und ihre columns deserialisiert werden, und überprüfen Sie anschließend, dass die zurückgegebenen items die erweiterten Daten statt eines leeren Arrays enthalten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 28/100