Add (related) record(s) to Campaign programmatically

Add (related) record(s) to Campaign programmatically

Hi, how can I add Contacts (or Activities) to a campaign (in Zoho CRM) programmatically (using Deluge script)?
I can retrive the related records once they are already there (getRelatedRecords), but how can I add them? 
Thanks