public function update($name, $city, $address) {

        $data = [
            'name' => $name,
            'city' => $city,
            'address' => $address
        ];

        $response = $this->client->update(
            $this->uri,
            $data
        );

        $responseContents = $response->getContent();

        if(!array_key_exists("error",$responseContents)){
            return new ResponseUpdate(
                $responseContents['api_id'],
                $responseContents['message'],
                $response->getStatusCode()
                );
        } else {
            throw new PlivoResponseException(
                $responseContents['error'],
                0,
                null,
                $response->getContent(),
                $response->getStatusCode()

            );
        }

        
    }
public function update($name, $city, $address) {

        $data = [
            'name' => $name,
            'city' => $city,
            'address' => $address
        ];

        $response = $this->client->update(
            $this->uri,
            $data
        );

        $responseContents = $response->getContent();

        if(!array_key_exists("error",$responseContents)){
            return new ResponseUpdate(
                $responseContents['api_id'],
                $responseContents['message'],
                $response->getStatusCode()
                );
        } else {
            throw new PlivoResponseException(
                $responseContents['error'],
                0,
                null,
                $response->getContent(),
                $response->getStatusCode()

            );
        }

        
    }
public function update ( $ name , $ city , $ address ) { $ data = [ 'name' => $ name , 'city' => $ city , 'address' => $ address ] ; $ response = $ this -> client -> update ( $ this -> uri , $ data ) ; $ responseContents = $ response -> getContent ( ) ; if ( ! array_key_exists ( "error" , $ responseContents ) ) { return new ResponseUpdate ( $ responseContents [ 'api_id' ] , $ responseContents [ 'message' ] , $ response -> getStatusCode ( ) ) ; } else { throw new PlivoResponseException ( $ responseContents [ 'error' ] , 0 , null , $ response -> getContent ( ) , $ response -> getStatusCode ( ) ) ; } }
If you would like to modify your account details, you could do so with
this method. You can make changes to the name, city and the address fields.
@param string $name Name of the account holder or business.
@param string $city City of the account holder.
@param string $address Address of the account holder.
@return ResponseUpdate
If you would like to modify your account details you could do so with this method . You can make changes to the name city and the address fields .