cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Webhooks in PHP

Webhooks in PHP

Paul E.
New member | Level 1

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 3

Steve M.
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.
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.
New 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
Need more support?