realadeel / pinterest-api

Ruby gem to interact with the official Pinterest REST API
MIT License
58 stars 37 forks source link

Pinterest HTTPS redirect issue #6

Open yongyi520 opened 8 years ago

yongyi520 commented 8 years ago

Hi,

It seems like Pinterest is only interested in redirect URI's with "https" rather than "http".

Is there a way for me to edit the redirect URI for pinterest-api?

I am thinking about a port forwarding address with ngrok. The developer would customize callback url to random address such as "https://15f03ea4.ngrok.io" which would forward to the original wanted address such as http://localhost:3000/auth/pinterest/callback

Thank You

jaypandya73 commented 8 years ago

@yongyi520 - Yes, it is requirement by Pinterest(https://developers.pinterest.com/docs/api/overview/) that we should use https instead of http. And as you mentioned if you want to test Pinterest API on Localhost then ngrok is the best option. I have tried it and it worked.

Just to sure don't forget to add your callback url in your Pinterest developer application each and every time which is generated by ngrok.