apify-client 3.0.0-beta.88 → 3.0.0-beta.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/bundle.js +10 -10
- package/dist/bundle.js.map +1 -1
- package/dist/http_clients/axios.d.ts +2 -1
- package/dist/http_clients/axios.js +6 -4
- package/dist/http_clients/base.d.ts +64 -14
- package/dist/http_clients/base.js +68 -30
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/resource_clients/actor.d.ts +30 -0
- package/dist/resource_clients/actor.js +43 -0
- package/dist/resource_clients/actor_server.d.ts +141 -0
- package/dist/resource_clients/actor_server.js +195 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ automatic retries and convenience functions that improve the experience of using
|
|
|
15
15
|
- [Features](#features)
|
|
16
16
|
- [Automatic parsing and error handling](#automatic-parsing-and-error-handling)
|
|
17
17
|
- [Retries with exponential backoff](#retries-with-exponential-backoff)
|
|
18
|
+
- [Server Actors](#server-actors)
|
|
18
19
|
- [Convenience functions and options](#convenience-functions-and-options)
|
|
19
20
|
- [Usage concepts](#usage-concepts)
|
|
20
21
|
- [Nested clients](#nested-clients)
|
|
@@ -65,6 +66,11 @@ The client ships with an axios-based HTTP client and accepts a custom one. Exten
|
|
|
65
66
|
`sendRequest()` over the HTTP library of your choice and plug it in with `ApifyClient.withCustomHttpClient()`. The
|
|
66
67
|
custom client inherits the retries, timeouts, compression and error handling of the built-in one.
|
|
67
68
|
|
|
69
|
+
### Server Actors
|
|
70
|
+
|
|
71
|
+
`client.actor(id).server()` returns a client for a Server Actor (formerly Actor Standby). It sends HTTP requests to
|
|
72
|
+
the Actor's web server with your token, and returns the server's URL and OpenAPI specification.
|
|
73
|
+
|
|
68
74
|
### Convenience functions and options
|
|
69
75
|
|
|
70
76
|
Some actions can't be performed by the API itself, such as indefinite waiting for an actor run to finish
|