Skip to content

Instantly share code, notes, and snippets.

<data>
<products>
<entry id="01">
<title>product 01</title>
</entry>
<entry id="02">
<title>product 02</title>
</entry>
<entry id="03">
<title>product 03</title>
<data>
<entry id="1">
<event>First Game</event>
<odds>1.2</odds>
<outcome>Win</outcome>
</entry>
<entry id="2">
<event>Second Game</event>
<odds>1.8</odds>
<outcome>Win</outcome>
@creativedutchmen
creativedutchmen / APIthoughts.markdown
Created April 19, 2011 15:14
Huib's thoughts on the public Symphony API

Code samples

Getting an entry from a section, filtering by the name field (long)

$section = Sections::getById(1);
$entries = $section->getEntries();
$entry   = $entries->getByName('You')->current();

Getting an entry from a section, filtering by tne name field (short)