Package ch.bztf.m226blb1.Auth
Class AuthService
java.lang.Object
ch.bztf.m226blb1.Auth.AuthService
The service for the authentication related tasks.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateAccount
(@NonNull AuthAccount authAccount) Creates a newaccount
with an API-Key for the given Instagram email and password.boolean
deleteAccount
(@NotBlank String apiKey) Deletes anaccount
with the given API-Key.regenerateAPIKey
(@NonNull AuthAccount authAccount) Regenerates the API-Key for the givenaccount
.
-
Constructor Details
-
AuthService
public AuthService()
-
-
Method Details
-
createAccount
Creates a newaccount
with an API-Key for the given Instagram email and password.- Parameters:
authAccount
- authentication account with the Instagramemail
andpassword
- Returns:
- a
ResponseHandler
for the API-key - See Also:
-
regenerateAPIKey
Regenerates the API-Key for the givenaccount
.- Parameters:
authAccount
- theaccount
for which to generate a new API-Key- Returns:
- a
ResponseHandler
for the new API-Key of the given account - See Also:
-
deleteAccount
Deletes anaccount
with the given API-Key.- Parameters:
apiKey
- the API-key of the account to be delete- Returns:
- true if the account was deleted, false otherwise
-