Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to manually set the App id and secret? #351

Closed
adiv-phpian opened this issue Apr 16, 2021 · 2 comments
Closed

How to manually set the App id and secret? #351

adiv-phpian opened this issue Apr 16, 2021 · 2 comments
Labels

Comments

@adiv-phpian
Copy link

How to override default consumer key and secret?

@reliq reliq added the question label Apr 16, 2021
@reliq
Copy link
Collaborator

reliq commented Apr 16, 2021

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
Copy link
Collaborator

reliq commented Apr 24, 2021

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

@reliq reliq closed this as completed Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants