title: What are requirements to handler of Push Callback of Foursquare API?
body: <p>What are requirements for handler of Push Callback of Foursquare API?</p>
  
  <ul>
  <li>What http verb 4sq uses to make a call ?</li>
  <li>What parameters/information does it send to my server ?</li>
  <li>What my server should reply ?</li>
  </ul>
  
  <p>Surprisingly I don't see answers on these questions at <a href="https://developer.foursquare.com/overview/" rel="nofollow">https://developer.foursquare.com/overview/</a></p>
  
  <p><strong>Update:</strong></p>
  
  <p>Well, since nobody replied I decided to insert to DB whatever comes to my end-point. Turned out callbacks never reach my server. Foursquare Push Console says my server returns <code>502 Bad Gateway</code> which it doesn't. Is it possible that Foursquare backend ignores port number in callback URL ? My url looks like this</p>
  
  <p><code>https://api.hostmane.com:8443/api/handle_4sq_push</code></p>