Log in with Pinterest

后端 未结 3 2062
离开以前
离开以前 2021-01-19 15:40

I can easy implement log in with facebook on iPhone. But I heared, that there was no official API for pinterest.

So I wonder if there is a way to implement login wi

3条回答
  •  野的像风
    2021-01-19 16:01

    Pintrest uses oAuth2 you should be able to use it akin of all the other providers ie GET request to a certain url to obtain the token, step by step instructions can be found here http://tijn.bo.lt/pinterest-api

    OAuth2 is an official api the issue boils down to finding the endpoint and GET syntax One thing to note is the object that is being returned can contain different values accross providers for instance I needed a Twitter and FB solution, but Twitter doesn't give you user's email so you had to ask for it separately (to uniquely identify the same account accross providers) For ruby there's the omniauth gem that lets you use multiple providers (strategies) with ease. Shouldn't be to complicated to roll out your own solution for or find a library for IOS

提交回复
热议问题