how to implement a data receiver service in Drupal
If you do it the JS part, Drupal part will be quite easy.

Create module with form that handle data transfer to Drupal and submit this form via Ajax https://drupal.org/node/752056

It can be helpful too: Match JSON POST data with custom node fields