Beispiel #1
0
        public Task <GeneratedFile> GenerateRevocationRequestXmlAsync(string authToken, string boxId, string messageId, string attachmentId, RevocationRequestInfo revocationRequestInfo, string contentTypeId = null)
        {
            var queryBuilder = new PathAndQueryBuilder("/V2/GenerateRevocationRequestXml");

            queryBuilder.AddParameter("boxId", boxId);
            queryBuilder.AddParameter("messageId", messageId);
            queryBuilder.AddParameter("attachmentId", attachmentId);
            if (!string.IsNullOrEmpty(contentTypeId))
            {
                queryBuilder.AddParameter("contentTypeId", contentTypeId);
            }
            return(PerformGenerateXmlHttpRequestAsync(authToken, queryBuilder.BuildPathAndQuery(), revocationRequestInfo));
        }
Beispiel #2
0
        public GeneratedFile GenerateRevocationRequestXml(string authToken, string boxId, string messageId, string attachmentId, RevocationRequestInfo revocationRequestInfo)
        {
            var queryString = string.Format("/GenerateRevocationRequestXml?boxId={0}&messageId={1}&attachmentId={2}", boxId, messageId, attachmentId);

            return(PerformGenerateXmlHttpRequest(authToken, queryString, revocationRequestInfo));
        }
        public Task <GeneratedFile> GenerateRevocationRequestXmlAsync(string authToken, string boxId, string messageId, string attachmentId, RevocationRequestInfo revocationRequestInfo)
        {
            var queryString = $"/GenerateRevocationRequestXml?boxId={boxId}&messageId={messageId}&attachmentId={attachmentId}";

            return(PerformGenerateXmlHttpRequestAsync(authToken, queryString, revocationRequestInfo));
        }