I'm new to creating Workflows. I'm trying to create a workflow that will pull the data via API to JSON and show results directly in Alfred without the need to visit the website to look at the response.
API REQUEST
GET https://api.website.com/?domain=test.com&apikey=yourapikey&output=output_type
So, what I'm trying to do is this:
type "dns test.com"
then request is:
GET https://api.website.com/?domain=test.com&apikey=123123123123123&output=json
The response will be:
JSON response will look like this:
{
"query": {
"tool": "name of the tool",
"domain": "test.com"
},
"expectedresponse": "205.204.123.234",
"response": {
"server": [
{
"location": "Town, Country",
"resultvalue": "205.204.123.123",
"resultstatus": "ok"
},
{
"location": "Another Town, Another Country",
"resultvalue": "205.204.123.234",
"resultstatus": "ok"
},
]
}
}
and I'm trying to show it in the Alfred window:
DNS test of test.com
Expected Response: 205.204.70.111
1. Town, Country - 205.204.123.123 - NOT OK
2. Another Town, Another Country - 205.204.123.234 - OK
etc.
Any help would be appreciated