PHP code example of sdksio / verizon-apis-sdk

1. Go to this page and download the library: Download sdksio/verizon-apis-sdk 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/ */

    

sdksio / verizon-apis-sdk example snippets


composer 

"    "sdksio/verizon-apis-sdk": "1.5.0"
}

$client = VerizonClientBuilder::init()
    ->thingspaceOauthCredentials(
        ThingspaceOauthCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthClientSecret'
        )
            ->oauthScopes(
                [
                    OauthScopeThingspaceOauthEnum::DISCOVERYREAD,
                    OauthScopeThingspaceOauthEnum::SERVICEPROFILEREAD
                ]
            )
    )
    ->vZM2mTokenCredentials(
        VZM2MTokenCredentialsBuilder::init(
            'VZ-M2M-Token'
        )
    )
    ->environment('Production')
    ->build();