</ul>'; $ca = new CityApi(); $ca->debug = true; echo '<h1>skills_index</h1>'; $ca->json = false; $results = $ca->skills_index(); $skillid = $results['skills'][0]['id']; echo '<pre>skillid: ' . $skillid . '</pre>'; echo '<h2>Formatted JSON results: </h2>'; echo '<pre>'; echo format_json(json_encode($results)); echo '</pre>'; echo '<hr>'; echo '<h1>skills_show</h1>'; $ca->json = true; $results = $ca->skills_show($skillid); echo '<h2>Formatted JSON results: </h2>'; echo '<pre>'; echo format_json($results); echo '</pre>'; echo '<hr>'; echo '<h1>skills_create</h1>'; $args = array('name' => 'Yugo Driver'); $ca->json = false; $results = $ca->skills_create($args); $skillid = $results['id']; echo '<h2>Formatted JSON results: </h2>'; echo '<pre>'; echo format_json(json_encode($results)); echo '</pre>'; echo '<hr>';