File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -92,12 +92,30 @@ options - Object (optional)
92
92
93
93
The responses are promise-based, so you you'll need to handle things in a .then() function or ` await ` if you use ES7.
94
94
95
+ ``` js
96
+ api .findPages (' 173' )
97
+ .then (i => console .log (i))
98
+ .catch (console .log )
99
+
100
+ // or if you are more ES7
101
+
102
+ try {
103
+ const result = await api .findPages (' 173' )
104
+ console .log (result .data )
105
+ } catch (err) {
106
+ // See constant below
107
+ console .log (err)
108
+ }
109
+ ```
110
+
111
+ To see in detail what each method returns, [ see this page] ( https://github.com/FiftyNine/ScpperDB#api ) .
112
+
95
113
The promised is resolved if no error has occurred (see below).
96
114
97
115
```
98
116
Constant VALUE Status Code Explanation
99
117
----------------------------------------------------------------------------------------
100
- NONE null 200-299 No problems.
118
+ NONE null 200-299 No problems. The promise is resolved.
101
119
CLIENT_ERROR 'CLIENT_ERROR' 400-499 Any non-specific 400 series error.
102
120
SERVER_ERROR 'SERVER_ERROR' 500-599 Any 500 series error.
103
121
TIMEOUT_ERROR 'TIMEOUT_ERROR' --- Server didn't respond in time.
@@ -148,4 +166,4 @@ SCP Foundation and all related works were created by SCP creative community and
148
166
149
167
Thanks to FiftyNine for the API and for his infinite patience during our exchanges !
150
168
151
- Thanks also to all my friends of the french Foundation branch <3
169
+ Thanks also to all my friends of the french Foundation branch, and for the unconditional love of Boule De Neige <3
You can’t perform that action at this time.
0 commit comments