-
Notifications
You must be signed in to change notification settings - Fork 18
Authentication
Josh edited this page Sep 21, 2016
·
1 revision
Most methods in this wrapper will require authentication to use. I've tried to make it as easy as possible to authenticate your account so you can begin messing with the fun stuff. To authenticate your account, you'll need to call a static method inside the Auth class called Login. Login has two options: login with email/password and login with refresh token.
Account me = await Auth.Login("email@myemail.com", "password");string refresh_token = "saved-from-elsewhere";
Account me = await Auth.Login(refresh_token);Both methods return the exact same thing: a new instance of the Account class. This class has methods specific to the current logged in user, such as adding/removing friends, blocking/unblocking users, etc. Proceed to Account to view all the methods and properties of that class.