有什么方法可以使用 iOS SDK 将图像上传到 pinterest,也许使用 fileURL? [英] Any way to upload image to pinterest with iOS SDK, maybe using a fileURL?

查看:34
本文介绍了有什么方法可以使用 iOS SDK 将图像上传到 pinterest,也许使用 fileURL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一种使用 iOS SDK 将本地生成的图像发布/上传到 pinterest 的方法.

Hi I'm trying to find a way to post/upload a locally generated image to pinterest with iOS SDK.

鉴于没有公共 API,我正在与 UIWebView 进行 pinterest 集成,并尝试将 fileURLWithPath: 用于图像 url,但显然没有成功.

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?

pinterest 应用程序显然允许您从相机胶卷上传/固定图像.

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?

谢谢!

推荐答案

您将需要使用多部分/表单数据类型的请求进行发布.这是一个如何做到这一点的例子.https://forrst.com/posts/Mutlipart_Form_Data_and_image_sending-Vw3

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

这篇关于有什么方法可以使用 iOS SDK 将图像上传到 pinterest,也许使用 fileURL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆