Looks like your using normal POST parameters in the code, not JSON. Should probably update this.