Created
February 3, 2016 02:50
-
-
Save ArionHardison/3572b8f4d4348c7491ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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