Any way to upload image to pinterest with iOS SDK, maybe using a fileURL?

 ̄綄美尐妖づ 提交于 2019-12-11 18:44:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!