KnpLabs / KnpLabs/php-github-api
Allow specifying custom parameters
- Langage dominant
- PHP
- Étoiles
- 2.2k
- Forks
- 587
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- php
- Domaine
- api
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100