I am needing to write a very basic PHP document that makes an API GET call through XML. The response will yield xml data with an id tag. I then need to take that tag and make a custom XML response that takes data within the id tag. I have done a lot of reading but am really confused at how to make this simple HTTP Get request using PHP
Here is the request I need to make:
GET https://api.example.com HTTP/1.1
Authorization: TOK:12345678-1234-1234-1234-1234567890ab
Accept: application/xml
Host: api.example.com
Here is the response I need to pass along in this xml response
<channels>
<channel name="channelname">
<rtmp>rtmp://example.com</rtmp>
<stream>live?IDREQUESTEDTAGGOESHERE</stream>
</channel>
</channels>