code: public StatusCode postMovieRating(int movieId, int rating, String sessionId, String guestSessionId) throws MovieDbException {
          if (rating < 0 || rating > RATING_MAX) {
              throw new MovieDbException(ApiExceptionType.UNKNOWN_CAUSE, "Rating out of range");
          }
  
          TmdbParameters parameters = new TmdbParameters();
          parameters.add(Param.ID, movieId);
          parameters.add(Param.SESSION_ID, sessionId);
          parameters.add(Param.GUEST_SESSION_ID, guestSessionId);
  
          URL url = new ApiUrl(apiKey, MethodBase.MOVIE).subMethod(MethodSub.RATING).buildUrl(parameters);
  
          String jsonBody = new PostTools()
                  .add(PostBody.VALUE, rating)
                  .build();
          String webpage = httpTools.postRequest(url, jsonBody);
  
          try {
              return MAPPER.readValue(webpage, StatusCode.class);
          } catch (IOException ex) {
              throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to post rating", url, ex);
          }
      }
docs: This method lets users rate a movie.
  
  A valid session id or guest session id is required.
  
  @param sessionId
  @param movieId
  @param rating
  @param guestSessionId
  @return
  @throws MovieDbException