pinterest

Get domain name for pinterest api

混江龙づ霸主 提交于 2019-12-07 04:29:30
问题 Currently I am working on pinterest api to get pin from my domain. I am able to get access token by api. Than I am making api call to get domain pin by using below : https://api.pinterest.com/v3/domains/<domain>/search/pins?access_token=ACCESSTOKEN But I am not sure what to put as <domain> . How can I know what is my domain name in pinterest. Note : I have created app using http:developer.pinterest.com/manage Also, there is not any provision of domain name over there, it should be your

How to use oembed tags to implement rich pins

不想你离开。 提交于 2019-12-07 01:58:53
问题 I need to implement rich pins provided by pinterest (http://developers.pinterest.com/rich_pins/). One of the recommended ways is to use oembed. Unfortunately I am not familiar with oembed tags and was wondering if somebody can provide more insight. What is the syntax for oembed tags? Should I surround with tags? Any particular place where it should be called? Any help will be appreciated. TIA 回答1: This gives examples, but given the SEO benefits of using structured data, it might be more

Android 类Pinterest 瀑布流实现方式 分享

风格不统一 提交于 2019-12-06 18:47:41
oschina 中收录了类Pinterst 瀑布流的一个实现方式 http://www.oschina.net/p/android_waterfall 实现方式是ScrollView 嵌套多列LinearLayout ,通过计算当前图片与上下两屏距离来判断是否被回收或者重载。 单个瀑布流也可以从布局文件中 Infalte 出来,实现自定义。 Github 上还有另外一种 瀑布流的实现方式 https://github.com/huewu/PinterestLikeAdapterView Git clone git://github.com/huewu/PinterestLikeAdapterView.git 韩文。韩国人写的。 写的有点特别 。 我估计: 他首先将google的 android.widget 包中的 AdapterView ,AdapterListView和 ListView 源码copy下来。 对其中的某些部分进行了修改.(代码太多 还没有看完) ,最后使用 MultiColumnListView 类实现了 多列的ListView。 如果预计没错 ,单个View的显示方式和回收方式是和ListView相同的,有个pool of recycled views 。Adapter 中调用 getView(int posititon ,View converView ..

What is the Pinterest's popular pins algorithm?

十年热恋 提交于 2019-12-06 13:36:05
How they are counting whether a pin is popular or not? I had something like this in mind: {reposts}*150+{comments}*100+{likes}*50-{time}/150 They probably won't tell anyone outside... But from my experience, popularity algorithms start off like the one you suggested, but tend to be refined and get more complex over time. Every similar algorithm I have been developing so far kept evoluting for months even after go live. As people try to trick the algorithm into making their own stuff more popular than other stuff, additional constraints are added to avoid this. Most probably there will be more

How to add an UICollectionViewLayout programmatically?

随声附和 提交于 2019-12-06 06:46:01
I'm trying to setup a UICollectionViewLayout programmatically. I'm using a UICollectionView also without using storyboards, as well as settings its constraints. I've followed Ray Wenderlich tutorial on the subject with some changes to adapt the code to Swift 3 (as AZCoder2 did https://github.com/AZCoder2/Pinterest ). Since all these examples uses storyboards, I've also introduced some changes to create the UICollectionView and its UICollectionViewLayout : collectionViewLayout = PinterestLayout() collectionViewLayout.delegate = self collectionView = UICollectionView.init(frame: .zero,

Pinterest API search not working anymore

末鹿安然 提交于 2019-12-06 06:33:11
I was looking for pinterest API endpoints... I've founded some URL.. https://api.pinterest.com/v3/domains/<domains>/search/pins/?query=<query>&access_token=<access_token> I was able to generate the access_token..but every time I've tried a POST on that URL it gave me: { "status":"failure", "code":12, "host":"ngapi2-b2fc674c", "generated_at":"Mon, 09 Feb 2015 17:45:29 +0000", "message":"Something went wrong on our end. Sorry about that.", "data":"path: /v3/domains/www.vtracker.com.br/search/pins/\nparams: [('access_token', [u'blablahblahblah']), ('query', [u'como'])]\nTraceback (most recent

How to get search feed from Pinterest API

梦想的初衷 提交于 2019-12-06 04:27:53
问题 I am looking to search feed of Pinterest API for Mobile Application. May i know how to get search feed from Pinterest API. 回答1: There is documentation here https://developers.pinterest.com/api_docs/ about their api, however it is only for queries about domains that are verified and belong to your Pinterest account. 回答2: This is deprecated as of 2019 and I think this can be a valid place to find what you're looking for. 回答3: If you can use unofficial api, with py3-pinterest you can do it like

Pinterest-iOS 2.3 and Swift: calling createPinWithImageURL results in EXC_BAD_ACCESS

亡梦爱人 提交于 2019-12-06 02:13:40
Using the Pinterest-IOS SDK (2.3) I'm getting a EXC_BAD_ACCESS error when creating an instance of the SDK via the Swift Bridge and then calling createPinWithImageURL. When converting the same code back to objective-c and then calling a wrapper method from Swift it works as expected. The root cause seems to be passing the appID and suffix strings from Swift to Objective-C. This code fails: self.pinterest = Pinterest(clientId:"your_app_id", urlSchemeSuffix:"prod")! if(pinterest.canPinWithSDK()) { pinterest.createPinWithImageURL(NSURL(string: imageUrl)!, sourceURL:NSURL(string: sourceUrl)!,

Pinterest Api limit the number of pins returned

巧了我就是萌 提交于 2019-12-05 20:51:56
using this request to get the pins of a user for Pinterest Api(from pinterest api documentation ) http://widgets.pinterest.com/v3/pidgets/users/ {username}/pins/ but by default returns a array of 50 pins is there a way to limit to lower number of pins returned? Go here, click Generate , and get an access token: https://developers.pinterest.com/tools/access_token/ Get the statuses using note&limit=int : https://api.pinterest.com/v1/me/pins/?access_token=TOKEN&fields=id,creator,note&limit=2 See docs for extra parameters: https://developers.pinterest.com/docs/api/overview/ 来源: https:/

Get domain name for pinterest api

眉间皱痕 提交于 2019-12-05 10:07:31
Currently I am working on pinterest api to get pin from my domain. I am able to get access token by api. Than I am making api call to get domain pin by using below : https://api.pinterest.com/v3/domains/<domain>/search/pins?access_token=ACCESSTOKEN But I am not sure what to put as <domain> . How can I know what is my domain name in pinterest. Note : I have created app using http:developer.pinterest.com/manage Also, there is not any provision of domain name over there, it should be your profile name or we may have to make some different process to get domain name. the value of domain is the