Forum Discussion
AdamN
14 years agoKhoros Oracle
Hi vidhyut_arora,
A sample response looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <response status="success"> <note type="note" href="/users/id/5/mailbox/notes/id/45"> <body type="string" null="true"/> <subject type="string" null="true"/> <sent_time type="date_time">2006-07-18T22:13:26+00:00</sent_time> <recieved_time type="date_time">2006-07-21T08:48:14+00:00</recieved_time> <to type="user" href="/users/id/43"> <login type="string">john_doe</login> </to> <from type="user" href="/users/id/43"> <login type="string">john_doe</login> </from> <id type="int">413</id> </note> </response>
So if the variable note contains the response of the note from the REST API, you should be able to access the sender and recipient via $note.from.login and $note.to.login respectively.
I hope this helps!