Reputation: 1780
Hi I'm trying to find a way to post/upload a locally generated image to pinterest with iOS SDK.
I'm doing the pinterest integration with UIWebView
given that there is no public API and tried to use for the image url a fileURLWithPath:
with no success obviously.
Does anyone have any idea if this can be accomplished?
The pinterest app obviously allows you to upload/pin an image from the camera roll.
Is there any way to embed that kind of functionality in my app?
Thank you!
Upvotes: 0
Views: 1946
Reputation: 4609
You will need to post using a multipart/form data type of request. Here is an example of how to do it. https://forrst.com/posts/Mutlipart_Form_Data_and_image_sending-Vw3
Upvotes: 1