PHP code example of 4-g / 4-g-specs-sdk

1. Go to this page and download the library: Download 4-g/4-g-specs-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/ */

    

4-g / 4-g-specs-sdk example snippets


composer 

"    "4-g/4-g-specs-sdk": "1.3.0"
}

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