Skip to content

Instantly share code, notes, and snippets.

@ArionHardison
Created February 3, 2016 02:50
Show Gist options
  • Save ArionHardison/3572b8f4d4348c7491ee to your computer and use it in GitHub Desktop.
Save ArionHardison/3572b8f4d4348c7491ee to your computer and use it in GitHub Desktop.
x = {
blog_post: {
name: "You will nevtrhtytrer guess",
slug: "pudgfdfdfddfgfdgfdzzle",
status: "published",
content_before_flip: "<p>You will never guess what is after the flip</p>",
content_after_flip: "<p>The answer is words. Words were after the flip.</p>",
tags: ["funny", "true"],
published_at: "2013-04-25T10:47:06-07:00"
}
}
uri = URI.parse("https://#{self.nation_slug}.nationbuilder.com/api/v1/sites/#{self.site_slug}/pages/blogs/#{self.blog_slug}/posts")
response = Net::HTTP.post_form(uri, x)
p uri
p response
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment