help catching api statuses
Posted: Mon Nov 30, 2009 11:09 am
hi all,
i'm currently using a 3rd party API that i can request via http and which is returning me XML as a response.
XML feed returned is below:
<resultat>
<etat>
<status>200</status>
</etat>
<donnees>
<id>c30kg2tC4Agfq19UbS7Q</id>
</donnees>
</resultat>
I succeeded in catching <status> value by using simplexml_load_file() but what I would like to do is for one single <id> to catch the value of <status> each second so I can get dynamically the value and print it within an html page
I'm missing this part of the code which would refresh the status and display in html
thanks for your help
i'm currently using a 3rd party API that i can request via http and which is returning me XML as a response.
XML feed returned is below:
<resultat>
<etat>
<status>200</status>
</etat>
<donnees>
<id>c30kg2tC4Agfq19UbS7Q</id>
</donnees>
</resultat>
I succeeded in catching <status> value by using simplexml_load_file() but what I would like to do is for one single <id> to catch the value of <status> each second so I can get dynamically the value and print it within an html page
I'm missing this part of the code which would refresh the status and display in html
thanks for your help