KnpLabs / KnpLabs/php-github-api

Allow specifying custom parameters

オープン
#1,057 コメント 1 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.2k
フォーク
587
PR マージ指標
30日以内にマージされた PR はありません

説明

The library locks you into providing only specific parameters. For example, `\Api\CurrentUser`:
![image](https://user-images.githubusercontent.com/54973868/158139424-d0b78a5b-861a-4d2a-b182-387ff02c3123.png)

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
api
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。