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

Commit 2bb0ee3

Browse files
committed
Make TwitterRestClient constructor accessible to allow app-only-auth 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
1 parent 6a5ab13 commit 2bb0ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/com/danielasfregola/twitter4s/TwitterRestClient.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import com.danielasfregola.twitter4s.util.SystemShutdown
2727

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

0 commit comments

Comments
 (0)