code: public TransformResult rotate(String photoId, JinxConstants.RotateDegrees degrees) throws JinxException {
      JinxUtils.validateParams(photoId, degrees);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.transform.rotate");
      params.put("photo_id", photoId);
      params.put("degrees", degrees.toString().replace("_", "")); // pull off the leading underscore
      return jinx.flickrPost(params, TransformResult.class);
    }
docs: Rotate a photo.
  <br>
  This method requires authentication with 'write' permission.
  
  @param photoId (Required) The id of the photo to rotate.
  @param degrees (Required) The amount of degrees by which to rotate the photo (clockwise) from it's current orientation.
  @return object with the photo id and secrets.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.transform.rotate.html">flickr.photos.transform.rotate</a>