Trying to list all my onedrive root entries

Đang mở
#1,435 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@shemogumbe đang làm issue này rồi.

Từ ngày 20/2/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

question

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

Ngôn ngữ chính
PHP
Star
669
Fork
150
Merge trung bình
15 giờ 21 phút
Pull request đã merge (30 ngày)
3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoftgraph/msgraph-sdk-php

Tất cả issue của microsoftgraph/msgraph-sdk-php

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.