KnpLabs / KnpLabs/php-github-api
Allow specifying custom parameters
- Lingua principale
- PHP
- Stelle
- 2.2k
- Fork
- 587
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
The library locks you into providing only specific parameters. For example, `\Api\CurrentUser`:

The `/user/repos` endpoint has more parameters than just these, though, such as `per_page`, which is now being locked to 30 because users cannot specify a custom value.
If there *is* however a way to specify custom options without having to do any hacky things with `$client->getHttpClient`, I'd love to hear.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by examining Api\CurrentUser and how requests to /user/repos accept and pass parameters; the issue specifically mentions the client’s getHttpClient as a possible workaround. Determine how custom options such as per_page should be exposed, then verify that callers can override the current fixed value without relying on the underlying HTTP client.
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
- Da chiarire
- Idoneità per principianti
- 35/100