     options = @getDefaultRequestOptions()
 
     @request.post "#{@urlBase}/devices/#{deviceUuid}/tokens", options, (error, response, body) ->
+      debug "generateAndStoreToken", error, body
       return callback error if error?
       return callback new Error(body.error.message) if body?.error?
 

    options.qs = query

    @request.get "#{@urlBase}/devices", options, (error, response, body) ->
      return callback error if error?
      return callback new Error(body.error) if body?.error?


    options = @getDefaultRequestOptions()

    @request.del "#{@urlBase}/devices/#{deviceUuid}/tokens/#{deviceToken}", options, (error, response, body) ->
      debug "revokeToken", error, body
      return callback error if error?
      return callback new Error(body.error.message) if body?.error?
      callback null
