Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass the content in campaign #285

Closed
narender2031 opened this issue Oct 8, 2019 · 0 comments
Closed

pass the content in campaign #285

narender2031 opened this issue Oct 8, 2019 · 0 comments

Comments

@narender2031
Copy link

template code:

<div class="article" mc:repeatable="">
  <h3 mc:edit="article_title">Title</h3>

  <p mc:edit="article_content">Content</p>
</div>

I want to know how can I change Title and content from the following api.

body = {
      template: {
        id: 354533,
        sections: {
          article_title: 'hello',
	  article_content: 'Articale to success for mission!'
        }
      }
    }
}

result = Gibbon::Request.campaigns(campaign_id).content.upsert(body: body)

I want to update my template content for a template. But I don't know how to pass the variables.
can you please give a example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant