KnpLabs / KnpLabs/php-github-api

Pagination for preview endpoints

Abierto
#716 12 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
2.2k
Forks
587
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I have some code like below but it appears to be dropping the `Accept` header for the preview of projects endpoint when trying to paginate. Is there some other way that I should be running configure to make that work?

```
$cardsApi = $githubClient->api('repo')->projects()->columns()->cards()->configure();
$paginator = new Github\ResultPager($githubClient);
$parameters = [$columnId];
$cards = $paginator->fetchAll($cardsApi, 'all', $parameters);

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by reading the repo/projects/columns/cards configure chain and Github\ResultPager::fetchAll used in the example, focusing on how preview headers are carried into paginated requests. Reproduce the pagination call and verify that the projects preview Accept header is preserved for every request.

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

Evaluación

Stack tecnológico
github, php
Área
api
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.