-
Notifications
You must be signed in to change notification settings - Fork 36
feat: add keyValueStore.getRecordPublicUrl #725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Pardon me being blunt, but what's the endgame here? Are users expected to stop using |
|
Huh, okay, what would those cases be? From the perspective of an Actor developer (or anyone primarily using the SDK), having two slightly different (or are they?) ways to achieve the same thing is very confusing. |
For example you just want to use our API, why would you download whole Apify SDK with Crawlee for that? Also, in Methods are nearly identical in SDK and client |
Yeah, I get that sometimes you want to use the client without pulling in the SDK along with crawlee as a dependency.
And that's probably my main issue. If we make the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. Agreed with the points here... the end game should be that we can just proxy the client implementation from SDK.
And perhaps the naming should be unified 😄
* Generates a URL that can be used to access key-value store record. | ||
* | ||
* If the client has permission to access the key-value store's URL signing key, | ||
* the URL will include a signature to verify its authenticity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* the URL will include a signature to verify its authenticity. | |
* the URL will include a signature which will allow the link to work even without authentication. |
Yes please! |
This PR adds new method to KV store client:
getRecordPublicUrl(key: string)
Note: We already have this same method (KeyValueStore.getPublicUrl) in SDK.