code: function getMedia (uri, cert, mode, user, safe, bufferURI) {
    if (mode === 'api') {
      return getMediaByAPI(uri, cert, mode, user, safe, bufferURI)
    } else if (mode === 'buffer') {
      return getMediaByBuffer(uri, cert, mode, user, safe, bufferURI)
    } else if (mode === 'http') {
      return getMediaByHTTP(uri, cert, mode, user, safe, bufferURI)
    }
  }
docs: Get Media item
  @param  {string} uri       The uri to get it from.
  @param  {string} cert      Location of an X.509 cert.
  @param  {string} mode      Mode api | http | buffer.
  @param  {string} user      The WebID of the user.
  @param  {number} safe      Whether safe search is on.
  @param  {string} bufferURI The URI of the buffer.
  @return {object}           Promise with the row.