Repository navigation
feat!: add Server Actor client and sync with Apify OpenAPI spec v2-2026-11-06T140128Z - #21
Merged
Merged
Conversation
…and port the apify-client-js Server Actor, dataset count and pagination docs changes - Spec sync: actorPath on Actor versions, standbyUrl getter. - Add ActorClient::server() with ActorServerClient (request, getUrl, getOpenApiSpec). - Add NoRedirectHttpClientInterface so a request carrying the token can refuse redirects. - Breaking: the count of a dataset items page is the scanned rows, or the items returned when larger. - Document the page size of iteration without chunkSize. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
…ctor request compression Share one offset iterator between collections and dataset items (JS #1187), judge compressibility on the caller's Content-Type, drop a stale Content-Length from compressed bodies, anchor the JSON content type, point the spec version at v2-2026-11-06T140128Z and tidy docs and tests. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
…shared test helper Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ocuAGnQ7tWM7EdPahZPAA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the PHP client with OpenAPI spec
v2-2026-11-06T140128Z(apify/apify-docs#3084, #3152) and ports apify-client-js #1179, #1187, #1190 and #1197. The client version goes to 0.13.0 (breaking:counton offset pages has a new meaning).Spec sync
ActorVersion::getActorPath()andActor::getStandbyUrl(). Models return fields as the API sends them, so these getters are the only model changes.actorPath, including an explicitnull.ActorStandby.tenancyand the admin-only fields are documented.Server Actors (JS #1179)
ActorClient::server()returns anActorServerClient, created once and reused, withrequest(),getUrl()andgetOpenApiSpec().ApifyRequestConfigoptions in the JS client.NoRedirectHttpClientInterface, whichGuzzleHttpClientimplements, soHttpClientInterfaceand existing custom transports are unchanged. If the transport cannot turn off redirects,request()throws before sending, so the token never follows a redirect.Content-Type, and drop a staleContent-Lengthfrom compressed bodies. A response withapplication/json-seqis handled bygetData().standby()alias is not ported, because the PHP client never had astandby()method.Offset page
count(JS #1187, #1190, #1197)counton a dataset items page is the number of scanned rows, or the number of items returned if that is larger.DatasetClient::iterateItems(), steps bymin(max(count, items), pageLimit).chunkSize(#1190). #1197 is covered by the spec regeneration.expiresInSecs) was already in the PHP client, so nothing changed for it.Tests and docs
count, andactorPath.actorPath, and checkcountwithskipEmpty.