コード例 #1
0
ファイル: Client.Generated.cs プロジェクト: TESUser/dotMailer
		/// <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);
		}
コード例 #2
0
ファイル: Client.Generated.cs プロジェクト: TESUser/dotMailer
		/// <summary>
		/// Adds a document to a campaign as an attachment.
		/// </summary>
		public ServiceResult<ApiDocument> PostCampaignAttachments(int campaignId, ApiDocument apiDocument)
		{
			return PostCampaignAttachmentsAsync(campaignId, apiDocument).Result;
		}