PHP code example of coolelephant / huaweicloud

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

    

coolelephant / huaweicloud example snippets


$huaweiCloud = new \CoolElephant\HuaweiYun\HuaweiCloud('a1d1f50cad21415fbdd13d8f53d36d60','cfc881cc704c4fba8d8fef5788e03e6b');
$response = $huaweiCloud->option(true)
                        ->uri('/rest/caas/relationnumber/partners/v1.0')
                        ->method('POST')
                        ->data(['relationNum' => 1888888888,'callerNum' => 18666666666])
                        ->request();