There is an explanation for pin in Pinterest for developers.
But I still have got the two following questions:
- How to log in?
- How to get a response of logged in user from the server after logging in?
I have gone through towards all demo available on google & stack overflow ,all they explain by using web view. but using web view, we can't get response of logged in user and in some Demo they have explained just how to pin it ?
In my app, I want login with pinterest.
Any help with the questions would be greatly appreciated.
The SDK provided by Pinterest only has the Pin it functionality, as described on their developer website. You cannot login with that SDK, but you can Pin images with it.
Pinterest has no official API for logging in, but they do use OAuth2 protocol. So you might have to write your own UIWebView handler that will allow the logging in. This will require research of OAuth2 protocol and storing cookies. Not a very easy task.
Check this GitHub project for a starting point.
There is some more information in the following questions:
Follow the steps 1 to 4 from here
Put following in Appdelgate.swift
Add following line in didFinishLaunchingWithOptions method of appdelegate
add following on your login view controller
The SDK provided by Pinterest You cannot login,but you can Pin images with it.there is no api available for the Pinterest logging so you not get the any response. you pin on the Pinterest using the below code.