Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Make TwitterRestClient constructor accessible to allow app-only-auth …
Browse files Browse the repository at this point in the history
…hack

Following on from DanielaSfregola#237 (comment)
this is the smallest change required to get the constructor-overriding hack
in this gist to work:

https://gist.github.com/rtyley/dc341992a6104f4b499834fd2d10dfad
  • Loading branch information
rtyley committed Mar 20, 2019
1 parent 6a5ab13 commit 2bb0ee3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import com.danielasfregola.twitter4s.util.SystemShutdown

/** Represents the functionalities offered by the Twitter REST API
*/
class TwitterRestClient private (val consumerToken: ConsumerToken, val accessToken: AccessToken)(
implicit _system: ActorSystem = ActorSystem("twitter4s-rest"))
class TwitterRestClient(val consumerToken: ConsumerToken, val accessToken: AccessToken)(implicit _system: ActorSystem =
ActorSystem("twitter4s-rest"))
extends RestClients
with SystemShutdown {

Expand Down

0 comments on commit 2bb0ee3

Please sign in to comment.