Placing a option order (Secured put or covered call)

Hi, Has anyone tried placing an option order ? If yes, can you please share the code ?