atymic/twitter

How to manually set the App id and secret?

adiv-phpian opened this issue · 2 comments

How to override default consumer key and secret?

reliq commented

You may do this via usingCredentials() method.

e.g.

// ...

$instance = Twitter::usingCredentials($accessToken, $accessTokenSecret, $consumerKey, $consumerSecret);

// subsequent calls on $instance methods will use the new config

Ps. singleton issue is resolved in #352

reliq commented

I'll close this now. Please let us know if you have further issues.