microsoftgraph / microsoftgraph/msgraph-sdk-php

Trying to list all my onedrive root entries

Open
#1,435 2 comments 0 reactions 1 assignee View on GitHub

@shemogumbe is already working on this.

Since Feb 20, 2025.

question
Dominant language
PHP
Stars
669
Forks
150
Avg merge
15h 21m
Merged PRs (30d)
3

Description

Hello, I created in php a class that makes an Graph Client (Creates access token and appClient).

I'm trying to create a GET request to list all my onedrive root (files and folders) with this endpoint:
GET https://graph.microsoft.com/v1.0/users/{user-id}/drive/root/children

This GET request work in POSTMAN but not in my own php code:
$response = $this->appClient->users()->byUserId($this->user_id)->drive()->root()->children()->get($configuration)->wait();

The $configuration is a new DriveRequestBuilderGetRequestConfiguration().
Perhaps I'm using the wrong Import?

Thank You,
Gilad Segal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.