microsoftgraph / microsoftgraph/msgraph-sdk-php
How to use range-update API with Microsoft Graph PHP SDK?
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 669
- Forks
- 150
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 3
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing WorkbookWorksheetItemRequestBuilder::rangeWithAddress(), WorkbookRange, RequestInformation::setContentFromParsable(), and the RequestAdapter to understand how PATCH requests and request bodies are represented. Confirm whether the SDK exposes a supported path for the range-update API or whether the request adapter can provide one, and document the resulting recommended usage or limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100