📝 Add getUploadedReports API doc.

This commit is contained in:
Haojian Wu 2015-06-05 19:05:55 +08:00
parent c821a06e2f
commit 4da7578dab

View file

@ -27,6 +27,9 @@ crashReporter.start({
* Only string properties are send correctly.
* Nested objects are not supported.
Developers are required to call the API before using other crashReporter APIs.
**Note:** On OS X, electron uses a new `crashpad` client, which is different
with the `breakpad` on Windows and Linux. To enable crash collection feature,
you are required to call `crashReporter.start` API to initiliaze `crashpad` in
@ -37,6 +40,10 @@ main process, even you only collect crash report in renderer process.
Returns the date and ID of last crash report, when there was no crash report
sent or the crash reporter is not started, `null` will be returned.
## crashReporter.getUploadedReports()
Returns all uploaded crash reports, each report contains date and uploaded ID.
# crash-reporter payload
The crash reporter will send the following data to the `submitUrl` as `POST`: