Update exportMetaData.R

implements `apiCall`