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

Abierto
#1,649 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
php
Área
api

Línea de trabajo

Empieza rastreando WorkbookWorksheetItemRequestBuilder::rangeWithAddress(), WorkbookRange, RequestInformation::setContentFromParsable() y el RequestAdapter para entender cómo se representan las solicitudes PATCH y los cuerpos de las solicitudes. Confirma si el SDK expone una ruta compatible para la range-update API o si el RequestAdapter puede proporcionar una, y documenta el uso recomendado o la limitación resultante.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

status:waiting-for-triage

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?
Lenguaje dominante
PHP
Estrellas
669
Forks
150
Merge medio
15 h 21 min
PR fusionados (30 d)
3

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoftgraph/msgraph-sdk-php

Todos los issues de microsoftgraph/msgraph-sdk-php

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.