Closed andig closed 5 years ago
Usage example:
#!/usr/bin/env php <?php use Andig\FritzBox\Api; require_once('vendor/autoload.php'); $api = new Api('http://fritz.box', 'foo', 'bar'); echo $api->getSID(); $formfields = array( 'PhonebookId' => 1 ); $filefields = array( 'PhonebookImportFile' => array( 'type' => 'text/xml', 'filename' => 'updatepb.xml', 'content' => 'foobarbaz', ) ); $result = $api->postFile($formfields, $filefields); // send the command echo $result;
fixes #78
Usage example:
fixes #78