Hi trying to make an API call that triggers a postmaster update parcel
looked at this post
I'm called my plugin from at jquery ajax call , all working fine can update the entry with the db class
$updateQuery = ee()->db->
update('exp_channel_data',
array(
'field_id_85' => "tester"
),
array(
'field_id_73' => $user['userdata'][0]['field_id_73']
)
);
But I would like to trigger postmaster (entry updated)
$this->EE->api_channel_entries->save_entry($data, (int)$user['userdata'][0]['channel_id'], (int)$user['userdata'][0]['entry_id']);
Like descibed in the post link above - but getting an error - do I need to login or is there another way to trigger a postmaster parcel ?
any help would be appreciated :)