Box.V2.Managers.BoxMetadataManager.GetMetadataTemplate C# (CSharp) Method

GetMetadataTemplate() public method

Used to retrieve the schema for a given metadata template.
public GetMetadataTemplate ( string scope, string template ) : Task
scope string Scope name. Currently, the only scopes supported are enterprise and global
template string Metadata template name
return Task
        public async Task<BoxMetadataTemplate> GetMetadataTemplate(string scope, string template)
        {
            BoxRequest request = new BoxRequest(_config.MetadataTemplatesUri, string.Format(Constants.MetadataTemplatesPathString, scope, template));
            IBoxResponse<BoxMetadataTemplate> response = await ToResponseAsync<BoxMetadataTemplate>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }