PHP Dropbox integration with dynamic redirect uri -


i working on php app in need integrate dropbox. following code:

require_once ("../dropbox-sdk/dropbox/autoload.php"); use \dropbox dbx; $appinfo = dbx\appinfo::loadfromjsonfile("../dropbox-config.json"); $csrftokenstore = new dbx\arrayentrystore($_session, 'dropbox-auth-csrf-token'); $redirect_uri = "https://www.myapp.com/redirecturi.php"; $webauth = new dbx\webauth($appinfo, "myapp", $redirect_uri, $csrftokenstore); $authorizeurl = $webauth->start(); 

this working fine static redirect uri. in app, redirect uri different different sub domains, like, https://abc.myapp.com/redirecturi.php, https://xyz.myapp.com/redirecturi.php etc.

but dropbox not allowing dynamic redirect uris. solution use static redirect uri , send parameters can create uri. dont know how send parameters.

you'll need use static redirect uri.

but when call start, can pass parameter returned when call finish after authorization. pass information need through there (e.g. subdomain want send user to).


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -