setAccessKey($config->ak); $client->setSecretKey($config->sk); $body = [ 'Domain' => $config->operateDomain, 'ServiceType' => 'web', 'Origin' => [ [ 'OriginAction' => [ 'OriginLines' => [ [ 'OriginType' => 'primary', 'InstanceType' => 'ip', 'Address' => '1.1.1.1', 'HttpPort' => '80', 'HttpsPort' => '443', 'Weight' => '100' ] ] ] ] ], 'OriginProtocol' => 'HTTP' ]; $response = $client->addCdnDomain($body); var_dump($response);