feat: add keyValueStore.getRecordPublicUrl#725
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 |
tobice
left a comment
There was a problem hiding this comment.
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.
| * 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! |
|
@janbuchar agreed with Tobi, that we'll call those new client methods in SDK(so we'll not copy same functionality over and over). Regarding naming, we'll need to deprecate later |
This PR adds new method to KV store client:
getRecordPublicUrl(key: string)Note: We already have this same method (KeyValueStore.getPublicUrl) in SDK.