hello of community…
i’m trying to use ofxOAuth to post images on tumblr… i got the provided example running and authentication just works fine… i’m also able to create text posts with…
oauth.post("/v2/blog/sinsynplus.tumblr.com/post?api_key=" + oauth.getConsumerKey() + “&type=text&state=draft&tags=sinsynplus,digital%20art,generative%20design,realtime,artists%20on%20tumblr&tweet=off&format=html&source_url=http://sinsynplus.tumblr.com/&title=sinsynplus%20loves%20you%2E%2E&body=sinsynplus%20loves%20computers%2E%2E”);
posting an image also works when using the source parameter…
oauth.post("/v2/blog/sinsynplus.tumblr.com/post?api_key=" + oauth.getConsumerKey() + “&type=photo&state=draft&tags=sinsynplus,digital%20art,generative%20design,realtime,artists%20on%20tumblr&format=html&source_url=http://sinsynplus.tumblr.com/&caption=sinsynplus%20loves%20you%2E%2E&source=http://farm4.staticflickr.com/3765/14255241795_6ccff02182_z.jpg”);
but i can’t upload images using the data parameter… gives me always an error 401…
in ofxOAuth.h these functions are provided…
std::string get(const std::string& uri,
const std::string& queryParams = “”);
std::string post(const std::string& uri,
const std::string& queryParams = “”);
std::string postfile_multipartdata(const std::string& uri,
const std::string& queryParams = “”,
const std::string& filefieldname = “”,
const std::string& filepath = “”);
i’m not sure if uploading images should work with post or if postfile_multipartdata has to be used…
maybe somebody ran into the same problem and can provide a solution…
thanks
and greetz
pls