-
Notifications
You must be signed in to change notification settings - Fork 18
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
API: preview.info #40
Comments
Hey Igor, short answer is – use We're looking into how this can be improved (perhaps with a previews specific short-lived token) as we realize it's not as developer friendly as it should be. |
@tommoor Hey Tom, can you tell me why some Thanks a lot. |
If you're receiving a 404 it means that the preview does not exist on the server. There isn't a preview on the server for every commit, for efficiency we only store previews on commit where a layer has changed… so you may need to query the layer.info, and then use |
@igorsheg-wix you should also be able to pass previews.raw({...layerDescriptor, sha: "latest"}) https://sdk.goabstract.com/docs/reference/#retrieve-a-preview @tommoor this is really only documented in a code comment in the docs. I want to add a "Retrieve the latest preview" section to the docs but it would also be nice to have place to generally surface the concept of "latest" across all objects |
Ah, of course 🙈 – should have mentioned that too. |
Hey,
I'm trying to get the preview to work - to get an png of a layer.
I'm using
preview.info
Getting
https://previews.goabstract.com/projects/eda68300-e1d0-11e8-8133-0b70a3eae7f0/commits/51bf03f17a6234d6f703b86d2309fe5ae4a28034/files/D06C3330-664C-4F89-B8E6-AC27B93AF4DC/layers/4DF3A97D-3F66-48A1-9459-B42B3154391C
then when i try to access it I get
{"error":"forbidden"}
maybe the documentation is unclear or I got something wrong.
Thanks in advance!
The text was updated successfully, but these errors were encountered: