The magnetization dynamics of single Co/Cu/Co spin valves, embedded in electrodeposited nanowires of 30 nm avarage diameter, was observed using the spin-diode effect. The electrically-detected magnetic resonances were compared when using modulation of either the magnetic field or a laser irradiation. The effect of temperature modulation was accounted for by introducing the temperature dependence of the saturation magnetization and anisotropy, as well as thermal spin-transfer torque (TSTT). The predictions of the model are compared with experimental data. Two forms of modular ion give rise to qualitative differences in the spectra that are accounted for by the model only if both temperature-modulated magnetization and TSTT are introduced in the model. On the contrary, the temperature modulation of the magnetic anisotropy has a smaller contribution.