PHP code example of sapistudio / myaudi

1. Go to this page and download the library: Download sapistudio/myaudi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sapistudio / myaudi example snippets


use SapiStudio\MyAudi\Init;

$configure = [
    'username' => 'user',
    'password' => 'pass'
    'HERE_API_KEY'=>'apivalue'
];
$myAudiHandler = Init::configure($configure);

use SapiStudio\MyAudi\Init;

$myAudiHandler = Init::make();

$myAudiHandler->getPosition();

$myAudiHandler->getServicePlan();

$myAudiHandler->Entries()->loadCosts();

$myAudiHandler->Entries()->loadJourneys();

$myAudiHandler->auxiliarClimaStatus();

$myAudiHandler->getFavoritePartner();

$myAudiHandler->getFavoritePartner();

$myAudiHandler->trackLocation();


Init::logout();