You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: sync .NET client with Apify OpenAPI spec v2-2026-07-08T143931Z
- Bump ApiSpecVersion to v2-2026-07-08T143931Z and client version to 0.1.2
- Align User-Agent OS token with reference clients (win32/darwin/linux/android/freebsd)
- Add brotli request-body compression for bodies >= 1024 bytes (Content-Encoding: br)
- Document the Actor versions / environment-variables sub-API and make doc token
preamble null-safe
`new ApifyClient("my-api-token")` takes the token as an explicit argument — it does **not** read
59
59
`APIFY_TOKEN` (or any other environment variable) automatically. Read it yourself if you want that,
60
-
e.g. `new ApifyClient(Environment.GetEnvironmentVariable("APIFY_TOKEN"))`.
60
+
e.g. `new ApifyClient(Environment.GetEnvironmentVariable("APIFY_TOKEN") ?? throw new InvalidOperationException("Set APIFY_TOKEN"))`
61
+
(the null-coalescing throw keeps the call null-safe when the variable is unset).
61
62
62
63
Get your API token from the
63
64
[Apify Console → Settings → API & Integrations](https://console.apify.com/settings/integrations).
@@ -70,7 +71,7 @@ the `using` directives for whichever ones a file references:
70
71
| Namespace | What lives here |
71
72
|---|---|
72
73
|`Apify.Client`| The entry point (`ApifyClient`), `ApifyClientOptions`, `ApifyClientVersion`, and the log-redirection helper `StreamedLog`. |
73
-
|`Apify.Client.Resources`| Every resource client the entry point returns — `ActorClient`, `RunClient`, `BuildClient`, `DatasetClient`, `KeyValueStoreClient`, `RequestQueueClient`, `TaskClient`, `ScheduleClient`, `LogClient`, `UserClient`, the `…CollectionClient` types (including `NestedWebhookCollectionClient` and `WebhookDispatchCollectionClient`), etc. |
74
+
|`Apify.Client.Resources`| Every resource client the entry point returns — `ActorClient`, `RunClient`, `BuildClient`, `DatasetClient`, `KeyValueStoreClient`, `RequestQueueClient`, `TaskClient`, `ScheduleClient`, `LogClient`, `UserClient`, `ActorVersionClient`, `ActorEnvVarClient`, the `…CollectionClient` types (including `ActorVersionCollectionClient`, `ActorEnvVarCollectionClient`, `NestedWebhookCollectionClient`, and `WebhookDispatchCollectionClient`), etc. |
74
75
|`Apify.Client.Models`| Data models returned by the clients — `Actor`, `ActorRun`, `Build`, `Dataset`, `RequestQueueRequest`, `ActorEnvVar`, `PaginationList<T>`, and so on. |
75
76
|`Apify.Client.Options`| The option/request objects passed into methods — `ActorStartOptions`, `DatasetListItemsOptions`, `DownloadItemsFormat`, `ListOptions`, `SetRecordOptions`, `StorageListOptions`, etc. |
76
77
|`Apify.Client.Exceptions`|`ApifyApiException` and `ApifyTransportException`. |
-`Version(string versionNumber)`/ `Versions()`— Actor versions.
51
+
-`Version(string versionNumber)`→ `ActorVersionClient`; `Versions()`→ `ActorVersionCollectionClient` — a single Actor version and the version collection.
0 commit comments