400 error when submitting tumblr post (ruby on rails)
Posted
by Matenia Rossides
on Stack Overflow
See other posts from Stack Overflow
or by Matenia Rossides
Published on 2010-05-27T03:34:44Z
Indexed on
2010/05/27
3:41 UTC
Read the original article
Hit count: 259
I am having a bit of an issue with getting tumblr working within a rails app.
This is the snippet of code which results in a 400 error (meaning that there was an incorrect parameter)
@postcontent = @post.content.gsub(/<\/?[^>]*>/, "") post = Tumblr::Post.create(:email => 'valid@email', :password => 'mypassword', :type => 'video', :embed
=> @post.video_html, :caption => @postcontent)
I have checked the API docs and checked my code and code content being rendered, and it still does not want to work.
The funny thing is that it worked previously. It was working about a week ago. Has something changed with tumblr?
© Stack Overflow or respective owner