public function get(string $id, array $fields = []): CallActivity
    {
        $response = $this->client->get($this->prepareUrlForKey('get-call', ['id' => $id]), ['_fields' => $fields]);

        return new CallActivity($response->getDecodedBody());
    }
public function get(string $id, array $fields = []): CallActivity
    {
        $response = $this->client->get($this->prepareUrlForKey('get-call', ['id' => $id]), ['_fields' => $fields]);

        return new CallActivity($response->getDecodedBody());
    }
public function get ( string $ id , array $ fields = [ ] ) : CallActivity { $ response = $ this -> client -> get ( $ this -> prepareUrlForKey ( 'get-call' , [ 'id' => $ id ] ) , [ '_fields' => $ fields ] ) ; return new CallActivity ( $ response -> getDecodedBody ( ) ) ; }
Gets the information about the call activity that matches the given ID.

@param string   $id     The ID of the activity
@param string[] $fields The subset of fields to get (defaults to all)

@return CallActivity
Gets the information about the call activity that matches the given ID .