microsoftgraph / microsoftgraph/msgraph-sdk-php

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

Aperta
#1,649 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

status:waiting-for-triage
Lingua principale
PHP
Stelle
669
Fork
150
Merge medio
15h 21m
PR unite (30g)
3

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia tracciando WorkbookWorksheetItemRequestBuilder::rangeWithAddress(), WorkbookRange, RequestInformation::setContentFromParsable() e il RequestAdapter per capire come vengono rappresentate le richieste PATCH e i corpi delle richieste. Verifica se l’SDK espone un percorso supportato per la range-update API o se il RequestAdapter può fornirne uno, quindi documenta l’utilizzo consigliato o la limitazione risultante.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
php
Ambito
api
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.