Answer the question
In order to leave comments, you need to log in
How to make multiple requests to JSON in 1st file?
Colleagues, welcome, the question is as follows:
I make a request to api, I get the correct json response, I get the necessary data, I display the necessary data.
json url:
$json_url = file_get_contents ('http://api.ya-bot.net/projects/'.$id.'/reports/'.$date.'/positions'.'?token='.$api_key.'&url='.$url.'&sengine='.$sengine.'®ion='.$region);
{
"positions":[
{
"query":"",
"wordstat":,
"groups":null,
"target_url":false,
"position":,
"change":-2,
"documents":,
"title":"",
"snippet":"",
"relpage":{
"url":""
}
},
Answer the question
In order to leave comments, you need to log in
if you store the response you get in the foo object, do the 2nd query, storing the response in the bar object, then compare what you want foo.positions.query == bar.positions.query.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question