code: public TokenAuthorisation getAuthorisationToken() throws MovieDbException {
          TmdbParameters parameters = new TmdbParameters();
          URL url = new ApiUrl(apiKey, MethodBase.AUTH).subMethod(MethodSub.TOKEN_NEW).buildUrl(parameters);
  
          String webpage = httpTools.getRequest(url);
  
          try {
              return MAPPER.readValue(webpage, TokenAuthorisation.class);
          } catch (IOException ex) {
              throw new MovieDbException(ApiExceptionType.AUTH_FAILURE, "Failed to get Authorisation Token", url, ex);
          }
      }
docs: This method is used to generate a valid request token for user based
  authentication.
  
  A request token is required in order to request a session id.
  
  You can generate any number of request tokens but they will expire after
  60 minutes.
  
  As soon as a valid session id has been created the token will be
  destroyed.
  
  @return
  @throws MovieDbException