I have an array returning from HTTP request
{
"status": "success",
"message": [
{
"Account": {
"company_name": "ABC1",
"api_token": "abc1",
"api_key": "xyz1"
}
},
{
"Account": {
"company_name": "ABC2",
"api_token": "abc2",
"api_key": "xyz2"
}
},
{
"Account": {
"company_name": "ABC3",
"api_token": "abc3",
"api_key": "xyz3"
}
}
]
}
I want to take api_key and api_token from each array and use them for basic authentication for the next HTTP request. Any help would be apprecated.
Thanks