code: public StatusCode postEpisodeRating(int tvID, int seasonNumber, int episodeNumber, 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, tvID);
          parameters.add(Param.SEASON_NUMBER, seasonNumber);
          parameters.add(Param.EPISODE_NUMBER, episodeNumber);
          parameters.add(Param.SESSION_ID, sessionID);
          parameters.add(Param.GUEST_SESSION_ID, guestSessionID);
  
          URL url = new ApiUrl(apiKey, MethodBase.EPISODE).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 TV episode. A valid session id or guest
  session id is required.
  
  @param tvID
  @param seasonNumber
  @param episodeNumber
  @param rating
  @param sessionID
  @param guestSessionID
  @return
  @throws MovieDbException