@@ -30,100 +30,100 @@ client.tasks.create({
30
30
name: ' Nature Home Page' ,
31
31
url: ' nature.com' ,
32
32
standard: ' WCAG2AA'
33
- }, function (err , task ) {
33
+ }, function (error , task ) {
34
34
// task = object representing the new task, or null if an error occurred
35
35
});
36
36
37
37
// Get all tasks
38
- client .tasks .get ({}, function (err , tasks ) {
38
+ client .tasks .get ({}, function (error , tasks ) {
39
39
// tasks = array of objects representing tasks, or null if an error occurred
40
40
});
41
41
42
42
// Get all tasks with last results included for each
43
43
client .tasks .get ({
44
44
lastres: true
45
- }, function (err , tasks ) {
45
+ }, function (error , tasks ) {
46
46
// tasks = array of objects representing tasks, or null if an error occurred
47
47
});
48
48
49
49
// Get results for all tasks
50
- client .tasks .results ({}, function (err , results ) {
50
+ client .tasks .results ({}, function (error , results ) {
51
51
// results = array of objects representing results, or null if an error occurred
52
52
});
53
53
54
54
// Get results for all tasks within a date range
55
55
client .tasks .results ({
56
56
from: ' 2023-01-01' ,
57
57
to: ' 2023-01-31'
58
- }, function (err , results ) {
58
+ }, function (error , results ) {
59
59
// results = array of objects representing results, or null if an error occurred
60
60
});
61
61
62
62
// Get results for all tasks with full details
63
63
client .tasks .results ({
64
64
full: true
65
- }, function (err , results ) {
65
+ }, function (error , results ) {
66
66
// results = array of objects representing results, or null if an error occurred
67
67
});
68
68
69
69
// Get a task by ID
70
- client .task (' 5231c687bbdf0f94fa000007' ).get ({}, function (err , task ) {
70
+ client .task (' 5231c687bbdf0f94fa000007' ).get ({}, function (error , task ) {
71
71
// task = object representing the requested task, or null if an error occurred
72
72
});
73
73
74
74
// Get a task by ID with last results included
75
75
client .task (' 5231c687bbdf0f94fa000007' ).get ({
76
76
lastres: true
77
- }, function (err , task ) {
77
+ }, function (error , task ) {
78
78
// task = object representing the requested task, or null if an error occurred
79
79
});
80
80
81
81
// Edit a task by ID
82
82
client .task (' 5231c687bbdf0f94fa000007' ).edit ({
83
83
name: ' New name'
84
- }, function (err , task ) {
84
+ }, function (error , task ) {
85
85
// task = object representing the newly updated task, or null if an error occurred
86
86
});
87
87
88
88
// Delete a task by ID
89
- client .task (' 5231c687bbdf0f94fa000007' ).remove (function (err ) {
89
+ client .task (' 5231c687bbdf0f94fa000007' ).remove (function (error ) {
90
90
// err = null if task was deleted, or an Error object if something went wrong
91
91
});
92
92
93
93
// Run a task by ID
94
- client .task (' 5231c687bbdf0f94fa000007' ).run (function (err ) {
94
+ client .task (' 5231c687bbdf0f94fa000007' ).run (function (error ) {
95
95
// err = null if task is running, or an Error object if something went wrong
96
96
});
97
97
98
98
// Get results for a task
99
- client .task (' 5231c687bbdf0f94fa000007' ).results ({}, function (err , results ) {
99
+ client .task (' 5231c687bbdf0f94fa000007' ).results ({}, function (error , results ) {
100
100
// results = array of objects representing results, or null if an error occurred
101
101
});
102
102
103
103
// Get results for a task within a date range
104
104
client .task (' 5231c687bbdf0f94fa000007' ).results ({
105
105
from: ' 2023-01-01' ,
106
106
to: ' 2023-01-31'
107
- }, function (err , results ) {
107
+ }, function (error , results ) {
108
108
// results = array of objects representing results, or null if an error occurred
109
109
});
110
110
111
111
// Get results for a task with full details
112
112
client .task (' 5231c687bbdf0f94fa000007' ).results ({
113
113
full: true
114
- }, function (err , results ) {
114
+ }, function (error , results ) {
115
115
// results = array of objects representing results, or null if an error occurred
116
116
});
117
117
118
118
// Get a result by ID
119
- client .task (' 5231c687bbdf0f94fa000007' ).result (' 523c0ee0ca452f0000000009' ).get ({}, function (err , result ) {
119
+ client .task (' 5231c687bbdf0f94fa000007' ).result (' 523c0ee0ca452f0000000009' ).get ({}, function (error , result ) {
120
120
// task = object representing the requested result, or null if an error occurred
121
121
});
122
122
123
123
// Get a result by ID with full details
124
124
client .task (' 5231c687bbdf0f94fa000007' ).result (' 523c0ee0ca452f0000000009' ).get ({
125
125
full: true
126
- }, function (err , result ) {
126
+ }, function (error , result ) {
127
127
// task = object representing the requested result, or null if an error occurred
128
128
});
129
129
```
0 commit comments