Hi! I'm working on an app that's working with some auth APIs, and I'm hitting a wall with the PHP return function to get the right redirect_uri to match my app's settings.
Code I have right now:
function callbackUrl($type)
{
return BASE_URL . "/install.php?action={$type}Callback";
}
What I end up with in the header is:
http%3A%2F%2Fiarchitectures.com%2FTw2other-master%2Finstall.php%3Faction%3DsinaCallback&response_type=code
Problem is that the site's API won't accept this as a true match for the redirect_uri - since this value for the redirect_uri can't be coded (i.e. http%3A%2F%2F needs to be [url]http://)[/url]
I've been trying to figure out how to have the return no result in this coded url.
Any help would be great! Thanks!