Hi guys,
I made an application to get news using Gnews.
I used HTTP request flow function rather than REST api integration, because the response is not an array as shown in the link …
Then I added page variable with type “any value” to receive the response and used the following formula: outputs[“HTTP request”].resBodyParsed
I am stuck now in how to read the data inside this variable and how to show it …
I tried to use “DECODE_JSON” formula to convert to text but it did not accept “any value type”
Hmm I think you could use a REST API integration and set the response path to articles in the Get Collection configuration to get the data in list form. That way you can use data variables and access all the info in the data more easily than with an any value type variable
thanks for your reply @Cecilia
I tried this , but it keep showing running when clicking run test … like in the photo below
maybe I made something wrong?
I made another solution using HTTP request, by setting the data type for the page variable to an object with list of objects … and then used the list to iterate … that worked for me .
but sure it is better to use Rest api direct integration
How odd, I just tested myself with the exact same parameters (country and topic) as you and it works fine… But if the HTTP Request was working fine then that’s good at least. If you want to still try then maybe creating a new data resource could work, if there’s something wonky with that particular one. You can also check your network tools (right click on your browser → Inspect → open the network tab), and then press Run Test to see if there’s any errors with the request.