Quick notice, I will be giving a talk about openSUSE at the Santa Maria University (Talcahuano) on Jun 13 at 10:20am, see ya !!
——————————————————————
Un aviso corto, el 13 de Junio a las 10:20 estaré dando una charla sobre openSUSE en la universidad Santa Maria de Talcahuano, nos vemos !!
Talks at the UTFSM/ Charlas en la UTFSM
May 29th, 2009Accessing SUSE Studio from PHP
May 24th, 2009As you may know, SUSE Studio provides a very cool API, Im going to show you how it can be accessed from PHP. First, you need the Zend_Rest_Client class, you can get it from http://framework.zend.com/ , you must also ensure it is available in your include_path. Let’s list the SUSE default templates first
>require_once 'Zend/Rest/Client.php';
/* First we authenticate to SUSE Studio using our API username and key. */
Zend_Rest_Client::getHttpClient()->setAuth('your-user', 'yourapikey');
$client = new Zend_Rest_Client('http://www.susestudio.com');
foreach($client->get('/api/v1/user/template_sets') as $templates) {
/* $template is a SimpleXmlElement instance */
echo $templates->description , PHP_EOL;
foreach($templates->template as $template) {
echo $template->name , PHP_EOL;
}
}
Neat eh ? that’s all for now, let’s dig more into SUSE Studio API in future posts.
Hello world!
May 6th, 2009Blog is back after a long period of silence and brokenness.. not much to say atm, stay tuned.