Updating with a GetToken method

Adding a GetToken method so that there is a way to fetch a token after
logging in for the API functions.