sailthru/Sailthru_Client.php
public function getUserByKey($id, $key, array $fields = [ ]) {
        $data = [
            'id' => $id,
            'key' => $key,
            'fields' => $fields
        ];
        return $this->apiGet('user', $data);
    }
public function getUserByKey($id, $key, array $fields = [ ]) {
        $data = [
            'id' => $id,
            'key' => $key,
            'fields' => $fields
        ];
        return $this->apiGet('user', $data);
    }
public function getUserByKey ( $ id , $ key , array $ fields = [ ] ) { $ data = [ 'id' => $ id , 'key' => $ key , 'fields' => $ fields ] ; return $ this -> apiGet ( 'user' , $ data ) ; }
Get user by specified key
@param String $id
@param String $key
@param array $fields
@return array
Get user by specified key