added functionality to add access token as a parameter
added functionality to add access token as a parameter