Does your API step have a previous step connected? If you’re using the “Enrich with an API” step specifically, input is required to show the response in the Editor.
The “Send to an API” step will only send a request if a previous step is connected and the flow is triggered to run.
Thanks Daniel, that was it.
So even if just testing, and not using any data from the previous steps, it needs to be connected to pull data, even if you’re still in the editor. Thanks for the heads up.
Well, hopefully this helps someone compress some images!
One more question, this time about resizing images. Maybe you can help
@daniel
.
I’m trying to resize the images, following the steps Tiny PNG lays out
here
:
image
886×755 35.8 KB
It seems you have to compress first, and the response you get from that is a URL with the newly compressed image. That URL is itself the endpoint for the resize step, as far as I understand it.
So I take that URL and form a request just like the example one. But the response I get is a mess of symbols, instead of a new URL with resized dimensions.
Here’s what I’m getting when I try that in as another enrich step:
Taking a look at the example response, it appears that the
Content-type
is being returned as
image/jpeg
for you to download.
Parabola can only work with
Content-type: application/json
, which would explain why symbols are showing up.
If you go to the link nested under
new-endpoint
, are you able to view or download the image and compare it to the dimensions you sent in your request?
Thanks
@daniel
. Yeah, when I go to that endpoint it’s still the same dimensions as before my resize step, so I don’t think anything is changing there.
Maybe there’s another api I can use for returning the resized image in a url.