src/Northstar.php
public function mergeUsers($id, $duplicateId, $pretend = false)
    {
        $pretendParam = $pretend ? '?pretend=true' : null;

        $response = $this->post('v1/users/'.$id.'/merge'.$pretendParam, ['id' => $duplicateId]);

        return new NorthstarUser($response['data']);
    }
public function mergeUsers($id, $duplicateId, $pretend = false)
    {
        $pretendParam = $pretend ? '?pretend=true' : null;

        $response = $this->post('v1/users/'.$id.'/merge'.$pretendParam, ['id' => $duplicateId]);

        return new NorthstarUser($response['data']);
    }
public function mergeUsers ( $ id , $ duplicateId , $ pretend = false ) { $ pretendParam = $ pretend ? '?pretend=true' : null ; $ response = $ this -> post ( 'v1/users/' . $ id . '/merge' . $ pretendParam , [ 'id' => $ duplicateId ] ) ; return new NorthstarUser ( $ response [ 'data' ] ) ; }
Send a POST request to merge two users in Northstar.

@param string $id - Northstar User ID.
@param string $duplicateId - Northstar User ID of duplicate user.
@param bool $pretend - Whether to persist the merge or not.
@return mixed
Send a POST request to merge two users in Northstar .