How to attach a product in lineItems when creating Quotes record?

How to attach a product in lineItems when creating Quotes record?

I am trying to set a product in lineitems using product id. following the instruction on how to add a record seems not working. I encountered error "invalid data" which point to product in parent api name "Product_Details". I am using PHP_SDK version 3.