{"action":"closed","issue":{"url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/269","labels_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/269/comments","events_url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/issues/269/events","html_url":"https://github.com/mgp25/WhatsAPI-Official/issues/269","id":53731603,"number":269,"title":"How to get the url of an image?","user":{"login":"clintoncheuk","id":9696471,"avatar_url":"https://avatars.githubusercontent.com/u/9696471?v=3","gravatar_id":"","url":"https://api.github.com/users/clintoncheuk","html_url":"https://github.com/clintoncheuk","followers_url":"https://api.github.com/users/clintoncheuk/followers","following_url":"https://api.github.com/users/clintoncheuk/following{/other_user}","gists_url":"https://api.github.com/users/clintoncheuk/gists{/gist_id}","starred_url":"https://api.github.com/users/clintoncheuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintoncheuk/subscriptions","organizations_url":"https://api.github.com/users/clintoncheuk/orgs","repos_url":"https://api.github.com/users/clintoncheuk/repos","events_url":"https://api.github.com/users/clintoncheuk/events{/privacy}","received_events_url":"https://api.github.com/users/clintoncheuk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mgp25/WhatsAPI-Official/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-08T09:44:15Z","updated_at":"2015-01-08T11:43:53Z","closed_at":"2015-01-08T11:43:53Z","body":"When I set ```$debug=true```, I can find the link. But how can I get the link in PHP?\r\n\r\n```xml\r\nrx  <message from=\"852xxxxxxxx@s.whatsapp.net\" id=\"130651802117238605-4\" type=\"media\" t=\"1420709677\" notify=\"xxx\">\r\nrx    <media type=\"image\" caption=\"Rh\" file=\"Ao34I0uLqhzqHanIatSGfG4dncorlP7icWSZRYcMaUpq.jpg\" size=\"43780\" url=\"https://mmi206.whatsapp.net/d/KKiqGa9EStIZssjhTdLnalSuTy0ABQwgv6imyQ/Ao34I0uLqhzqHanIatSGfG4dncorlP7icWSZRYcMaUpq.jpg\" encoding=\"raw\" ip=\"198.11.217.201\" mimetype=\"image/jpeg\" filehash=\"3Gl6WRQjzLS4mC2VqAKABHHNP1713cMDD1xug/jLRfQ=\" width=\"480\" height=\"720\"> 2709 byte data</media>\r\nrx  </message>\r\n```\r\n\r\nIn ```class ProcessNode``` (Modified from exampleFunctional.php),\r\nI know ```$text = $node->getChild('body')->getData();``` can receive the text message.\r\nI tried ```$url = $node->getChild(\"media\")->getAttribute('url');```, but It do not return anything.\r\nI am using the latest code.\r\nThanks."}}