Today I played around with External API feature in 6.4b3. Works very nice. I was able to build a small weather forecast page with OpenWeather API.
Of course all icons are the new FontAwesome icons. And even the wind direction does have the correct degree
Here are some questions/suggestions I noted along the way:
- In the info field, is there an information where I can tell, if the response is from cache or not? Maybe filetime?
- often I wanted to string format a value. Do we have a way to do this?
i.e.:{{dc:looper:field key="temperature" format="%01.2f"}}
- often there are UNIX timestamps in the response. Do we have a way to format them?
i.e.:{{dc:looper:field key="timestamp" timestampformat="H:m"}}
I know this works on some time fields like Publish Time. Maybe this can be expanded to looper fields?
Currently I wrote two small shortcodes to string format and convert timestamps. But of course it would be nice, if there is a built in way
All in all just some convenience suggestions.
Good job, I had no problems while playing with the API