Fixing the Authorize method

- Error when calling the Authorize method. Fixed that
- Added boolean parameter to buildPath method to avoid passing the api_version in the URL (not needed for the oauth call)
- Changing buildPath to protected (from private) for access