Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Paul E.
11 years agoNew member | Level 1
Webhooks in PHP
I have been playing round with the PHP SDK, but have not figured out exactly what I should be sending back for the verification request. the documentation rather ambigously says "Your app needs to respond by echoing back that challenge parameter." However the error returned states
Error: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
Response:
(No headers)
Response Body (First 256 bytes):
(No response body)
Is there some sample code for PHP? The documentation only has Python.
Thanks,
Paul.
3 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
You need to return the value of the query string parameter called "challenge".
This PHP code should do the trick:
<?php echo $_GET['challenge']; ?> - Steve M.11 years ago
Dropbox Staff
Actually, I missed the SSL error in your post. If there's an SSL error, it means we can't even connect to your server to get a response. You'll need to resolve that issue first... if you need help, please open an API support ticket: https://www.dropbox.com/developers/contact.
- Paul E.11 years agoNew member | Level 1
Thanks for the quick response!
I tried a simple echo statement first, but it would seem the SSL error is causing the issue.
Oddly enough the SSLTester returns OK:
Testing your PHP installation's SSL implementation for a few obvious problems...
- Host OS: Linux 3.2.0-54-virtual
- PHP version: 5.3.10-1ubuntu3.8
- cURL version: 7.22.0
- cURL SSL backend: OpenSSL/1.0.1
Basic SSL tests
- testAllowed (www.dropbox.com) .................... ok
- testAllowed (www.digicert.com) ................... ok
- testHostnameMismatch (www.v.dropbox.com) ......... ok
- testUntrustedCert (testssl-expire.disig.sk) ...... ok Pinned certificate tests
- testUntrustedCert (www.verisign.com) ............. ok
- testUntrustedCert (www.globalsign.fr) ............ ok
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!