microsoftgraph / microsoftgraph/msgraph-sdk-php

How to use range-update API with Microsoft Graph PHP SDK?

Offen
#1,649 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

status:waiting-for-triage
Vorherrschende Sprache
PHP
Sterne
669
Forks
150
Ø Merge
15 Std. 21 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Hello humans of the earth,

I'm trying to figure out how to use the range-update API with the Microsoft Graph PHP SDK. I want to update the value of a specific cell in an Excel worksheet, but I’m not sure how to properly construct the request using the SDK.

What I've tried:

  • I attempted using WorkbookWorksheetItemRequestBuilder::rangeWithAddress() to target the cell, but there doesn’t seem to be a clear method to perform the PATCH with the updated value.
  • Using WorkbookRange directly is challenging since it lacks a setValues() method or any way to set cell content.
  • I tried using RequestInformation::setContentFromParsable(), but it throws a type error since it expects a Parsable object, not a simple array.

What I’m looking for:

  • A recommended way to use the SDK to perform the range-update without manually crafting the HTTP request.
  • If there’s no current method, is there a workaround using the SDK’s RequestAdapter that adheres to best practices?

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, WorkbookWorksheetItemRequestBuilder::rangeWithAddress(), WorkbookRange, RequestInformation::setContentFromParsable() und den RequestAdapter nachzuverfolgen, um zu verstehen, wie PATCH-Anfragen und Request-Bodies dargestellt werden. Prüfe, ob das SDK einen unterstützten Pfad für die range-update API bereitstellt oder ob der RequestAdapter einen solchen bereitstellen kann, und dokumentiere die daraus resultierende empfohlene Verwendung oder Einschränkung.

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
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.