Package com.illusionaryone
Class StreamLabsAPI
java.lang.Object
com.illusionaryone.StreamLabsAPI
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanAttempts to authorize the user and obtain an access tokenstatic intGetDonations(int lastId) static booleanstatic StreamLabsAPIinstance()voidSetCurrencyCode(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:
trueif an access token was obtained and saved- Throws:
JSONExceptionURISyntaxException
-
GetDonations
- Throws:
JSONExceptionURISyntaxException
-