src/API/Search.php
public function putBaiDu(array $urls) {
        return $this->getBaiDu()->setHeader([
            'Content-Type' => 'text/plain'
        ])->parameters($this->merge([
            'urls' => $urls
        ]))->encode(function ($data) {
            return implode("\n", $data['urls']);
        })->json();
    }
public function putBaiDu(array $urls) {
        return $this->getBaiDu()->setHeader([
            'Content-Type' => 'text/plain'
        ])->parameters($this->merge([
            'urls' => $urls
        ]))->encode(function ($data) {
            return implode("\n", $data['urls']);
        })->json();
    }
public function putBaiDu ( array $ urls ) { return $ this -> getBaiDu ( ) -> setHeader ( [ 'Content-Type' => 'text/plain' ] ) -> parameters ( $ this -> merge ( [ 'urls' => $ urls ] ) ) -> encode ( function ( $ data ) { return implode ( "\n" , $ data [ 'urls' ] ) ; } ) -> json ( ) ; }
INITIATIVE PUT URLS TO BAIDU
@param array $urls
@return array
@throws \Exception
INITIATIVE PUT URLS TO BAIDU