initialAuth function
Implementation
void initialAuth(String appKey, String appSecret, {bool mobile = false}) {
_clientCredentials = new ClientCredentials(appKey, appSecret);
_hasInitializeAuth = true;
// define platform (server)
Platform platform = new Platform(
PlurkEndpoints.oAuthRequestToken(), // temporary credentials request
mobile == true ? PlurkEndpoints.mAuthorize() : PlurkEndpoints.oAuthAuthorize(), // resource owner authorization
PlurkEndpoints.oAuthAccessToken(), // token credentials request
SignatureMethods.hmacSha1 // signature method
);
// create Authorization object with client credentials and platform definition
_auth = new Authorization(_clientCredentials!, platform);
}