Twittertoken

This class represents the application token previously configured in Twitter. The token can be used for the application authentication only. Our model should look like this:

data class TwitterToken(val accessToken: String,val accessTokenSecret: String)

I love the Kotlin way to declare data classes—totally immutable and without boilerplate.

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.