コード例 #1
0
        ///<summary>
        ///Set campaign content
        ///</summary>
        internal async Task<dynamic> SetCampaignContentAsync(string campaign_id, ContentTemplate contentTemplate)
        {
            string endpoint = Authenticate.EndPoint(TargetTypes.campaigns, SubTargetType.content, SubTargetType.not_applicable, campaign_id);

            RootContent content = new RootContent()
            {
                template = contentTemplate,
            };

            return await BaseOperation.PutAsync<RootContent>(endpoint, content);
        }
コード例 #2
0
        ///<summary>
        ///Set campaign content
        ///</summary>
        internal async Task<dynamic> SetCampaignContentAsync(string campaign_id, ContentSetting setting)
        {
            string endpoint = Authenticate.EndPoint(TargetTypes.campaigns, SubTargetType.content, SubTargetType.not_applicable, campaign_id);

            RootContent content = new RootContent()
            {
                plain_text = setting.plain_text,
                html = setting.html,
                url = setting.url
            };

            return await BaseOperation.PutAsync<RootContent>(endpoint, content);
        }