C# 클래스 SocketLabs.InjectionApi.CSharp.Samples

파일 보기 프로젝트 열기: socketlabs/email-on-demand-examples

공개 메소드들

메소드 설명
SimpleInjectionApiTemplate ( int serverId, string yourApiKey, string apiUrl ) : void

This example uses generic JsonObject containers to create a POST request for sending one or more SMTP messages through Email-On-Demand. The JSON request generated by this sample code looks like this: { "ServerId": "YOUR SERVER ID HERE", "ApiKey": "YOUR API KEY HERE", "Messages": [{ "Subject": "API Template Example", "ApiTemplate": "1", "To": [{ "EmailAddress": "%%DeliveryAddress%%", "FriendlyName": "%%FirstName" }], "From": { "EmailAddress": "[email protected]", "FriendlyName": "The ABC Company" }, "MergeData": { "PerMessage": [ [ { "Field":"DeliveryAddress", "Value":"[email protected]" }, { "Field": "FirstName", "Value": "John" } ] ] } }] }

메소드 상세

SimpleInjectionApiTemplate() 공개 정적인 메소드

This example uses generic JsonObject containers to create a POST request for sending one or more SMTP messages through Email-On-Demand. The JSON request generated by this sample code looks like this: { "ServerId": "YOUR SERVER ID HERE", "ApiKey": "YOUR API KEY HERE", "Messages": [{ "Subject": "API Template Example", "ApiTemplate": "1", "To": [{ "EmailAddress": "%%DeliveryAddress%%", "FriendlyName": "%%FirstName" }], "From": { "EmailAddress": "[email protected]", "FriendlyName": "The ABC Company" }, "MergeData": { "PerMessage": [ [ { "Field":"DeliveryAddress", "Value":"[email protected]" }, { "Field": "FirstName", "Value": "John" } ] ] } }] }
public static SimpleInjectionApiTemplate ( int serverId, string yourApiKey, string apiUrl ) : void
serverId int
yourApiKey string
apiUrl string
리턴 void