im using vObject to create a vCard. Everything works well except I can't add multiple phone numbers.
Right now i'm doing this:
v.add('tel')
v.tel.type_param = 'WORK'
v.tel.value = employee.office_phone
v.add('tel')
v.tel.type_param = 'FAX'
v.tel.value = employee.fax
As it's working as a key value, the work phone is overwritten by the fax number.
Any idea on who to do it right?
Thanks!
The
add()
method returns a specific object which can be used to fill in more data:Output: