public function addInteraction(Interaction $interaction)
    {
        $response = $this
            ->httpClient
            ->get(
                sprintf(
                    '/%s/interactions',
                    $this->getAppUUID()->composeUUID()
                ),
                'post',
                [],
                $interaction->toArray(),
                Http::getApisearchHeaders($this)
            );

        self::throwTransportableExceptionIfNeeded($response);
    }
public function addInteraction(Interaction $interaction)
    {
        $response = $this
            ->httpClient
            ->get(
                sprintf(
                    '/%s/interactions',
                    $this->getAppUUID()->composeUUID()
                ),
                'post',
                [],
                $interaction->toArray(),
                Http::getApisearchHeaders($this)
            );

        self::throwTransportableExceptionIfNeeded($response);
    }
public function addInteraction ( Interaction $ interaction ) { $ response = $ this -> httpClient -> get ( sprintf ( '/%s/interactions' , $ this -> getAppUUID ( ) -> composeUUID ( ) ) , 'post' , [ ] , $ interaction -> toArray ( ) , Http :: getApisearchHeaders ( $ this ) ) ; self :: throwTransportableExceptionIfNeeded ( $ response ) ; }
Add interaction.

@param Interaction $interaction
Add interaction .