johra / spotify-token-parse-tutorial

Spotify Token Swap Service for Parse
6 stars 0 forks source link

What url do I put for swap #1

Closed sajsanghvi closed 8 years ago

sajsanghvi commented 9 years ago

Hey man. Super helpful tutorial.

So i deployed the cloud code to /cloud/main.js via my terminal, but what exact URL do I put as my refresh and swap URLs in my iOS sdk..just a little confused here

Thank you!

hbun commented 8 years ago

I'm wondering the same thing. Working in an iOS project, this is my first time dealing with a token swap, and any additional information would be wonderful!

johra commented 8 years ago

Sorry for the late reply. In parse you will get a location for your cloud code, so in iOS you put the following: let kTokenSwapServiceURL = "http://YOURAPPNAME.parseapp.com/swap" let kTokenRefreshServiceURL = "http://YOURAPPNAME.parseapp.com/refresh"