问题
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!
回答1:
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
来源:https://stackoverflow.com/questions/13752039/any-way-to-upload-image-to-pinterest-with-ios-sdk-maybe-using-a-fileurl