/// <summary> /// Adds a document to a campaign as an attachment. /// </summary> public async Task<ServiceResult<ApiDocument>> PostCampaignAttachmentsAsync(int campaignId, ApiDocument apiDocument) { var request = new Request(baseAddress, "campaigns/{campaignId}/attachments", new Dictionary<string, object> { { "campaignId", campaignId }, }); return await PostAsync<ApiDocument>(request, apiDocument); }
/// <summary> /// Adds a document to a campaign as an attachment. /// </summary> public ServiceResult<ApiDocument> PostCampaignAttachments(int campaignId, ApiDocument apiDocument) { return PostCampaignAttachmentsAsync(campaignId, apiDocument).Result; }