Package com.illusionaryone
Class StreamLabsAPI
java.lang.Object
com.illusionaryone.StreamLabsAPI
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Attempts to authorize the user and obtain an access tokenstatic int
GetDonations
(int lastId) static boolean
static StreamLabsAPI
instance()
void
SetCurrencyCode
(String sCurrencyCode)
-
Method Details
-
instance
-
hasAccessToken
public static boolean hasAccessToken() -
getDonationPullLimit
public static int getDonationPullLimit() -
SetCurrencyCode
-
authorize
public static boolean authorize(String clientId, String clientSecret, String redirectUri, String code) throws JSONException, URISyntaxException Attempts to authorize the user and obtain an access token- Parameters:
clientId
- The client IDclientSecret
- The client secretredirectUri
- The redirect URI that received the codecode
- The code to exchange for an access token- Returns:
true
if an access token was obtained and saved- Throws:
JSONException
URISyntaxException
-
GetDonations
- Throws:
JSONException
URISyntaxException
-