def push_token
      return params[:pushToken] if params.include?(:pushToken)
      if request && request.body
        request.body.rewind
        json_body = JSON.parse(request.body.read)
        if json_body['pushToken']
          json_body['pushToken']
        end
      end
    end
def push_token
      return params[:pushToken] if params.include?(:pushToken)
      if request && request.body
        request.body.rewind
        json_body = JSON.parse(request.body.read)
        if json_body['pushToken']
          json_body['pushToken']
        end
      end
    end
Convienience method for parsing the pushToken out of a JSON POST body