updated api to remove need for jsonp variable

Wasn't happy that the api had to pass in a jsonp response variable so I
modified that to allow the api to be more universal and useable from
within a curl request other rest API method call.