File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- # node -do
1
+ # @ scrape -do/client
2
2
3
3
#### Scrape.do's official http client for node.js
4
4
5
5
## How to install?
6
6
7
7
``` shell
8
- npm install @scrape-do/do
8
+ npm install @scrape-do/client
9
9
# or get it from github
10
- npm install git://git@github.com/scrape-do/node-do
10
+ npm install git://git@github.com/scrape-do/node-client
11
11
```
12
12
13
13
## How to build from scratch
14
14
15
15
#### If you want to contribute to the library or include your own customisations, you can recompile the library in this way.
16
16
17
17
``` shell
18
- git clone https://github.com/scrape-do/node-do
18
+ git clone https://github.com/scrape-do/node-client
19
19
npm i
20
20
# build with
21
21
npm build
@@ -27,10 +27,10 @@ npm build
27
27
28
28
``` typescript
29
29
const client = new ScrapeDo (" example_token" );
30
- const response = await client .doRequest (" GET" , {
30
+ const response = await client .sendRequest (" GET" , {
31
31
url: " https://httpbin.co/anything" ,
32
32
extraHeaders: {
33
- " sd- A123" : " Extra Header" ,
33
+ A123: " Extra Header" ,
34
34
},
35
35
});
36
36
@@ -39,9 +39,9 @@ console.log(response.data);
39
39
40
40
## More details
41
41
42
- #### [ Documentation for more information] ( https://scrape.do/documentation/?utm_source=github&utm_medium=node-do )
42
+ #### [ Documentation for more information] ( https://scrape.do/documentation/?utm_source=github&utm_medium=node-client )
43
43
44
- #### [ Scrape.do] ( https://scrape.do?utm_source=github&utm_medium=node-do )
44
+ #### [ Scrape.do] ( https://scrape.do?utm_source=github&utm_medium=node-client )
45
45
46
46
## License
47
47
You can’t perform that action at this time.
0 commit comments