# get list of your own input instances echo "\nGetting list of my input profiles:"; $input_list = $rats->getInputList("owner=self"); foreach ($input_list->feed->entry as $e) { echo "\n Input has name = " . $e->content->params->name; } # delete input instance $rats->deleteInput($input->entry->content->params->id); echo "\nDeleted input with name = " . $input->entry->content->params->name; # OUTPUT # ----- # create output profile $output = $rats->createOutput(array("name" => "test_rats_api_output", "method" => "cdn")); echo "\n\nCreated output: " . $output->entry->id; # retrieve a single output instance based on the id $output = $rats->getOutputInstance($output->entry->content->params->id); echo "\nRetrieved output with name = " . $output->entry->content->params->name . " and method = " . $output->entry->content->params->method; # update output instance $output->entry->content->params->description = "Exporting files to CDN"; $output = $rats->updateOutput($output); echo "\nRetrieved output with name = " . $output->entry->content->params->name . " and description = " . $output->entry->content->params->description; # get list of your own output instances echo "\nGetting list of my output profiles:"; $output_list = $rats->getOutputList("owner=self"); foreach ($output_list->feed->entry as $e) { echo "\n Output has name = " . $e->content->params->name; } # delete output instance $rats->deleteOutput($output->entry->content->params->id); echo "\nDeleted output with name = " . $output->entry->content->params->name; # FORMAT