KnpLabs / KnpLabs/php-github-api

Pagination for preview endpoints

Aperta
#716 12 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
PHP
Stelle
2.2k
Fork
587
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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);

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

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

Valutazione

Stack tecnologico
github, php
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.