Default requestParams#72
Conversation
For request params without set/get function ie : with, replies and new param if necessary
|
Great PR Guillaume, I hope this is merged. |
|
I like this, and it seems low-risk. Mind you, I feel like ultimately the library should support the "real" parameters, but no matter. @DarrenCook - thoughts? |
|
Personally, I would be happy with just a |
|
No strong thoughts; though if "with" is the only parameter that is missed currently, a If sticking with this, maybe call it to: And the same for the others. |
|
@DarrenCook : maybe call it setDefaultRequestParams() Of course, it was i wanted to mean. GB |
|
@fennb @DarrenCook any chance of this being merged, or implemented in the way Darren suggested? |
Some simple code for default requestParams without set/get function
For example "with", "replies" and new futur param if necessary
$sc = new MyUserConsumer( OAUTH_TOKEN, OAUTH_SECRET, Phirehose::METHOD_USER );
$sc->setRequestParam( 'with', 'user' );
$sc->consume();
HTH
Guillaume