Added getMediaItems method with offset and limit