add cid to TwingleCampaign.get and .getsingle specs

This commit is contained in:
Marc Michalsky forumZFD 2021-02-19 16:11:28 +01:00
parent fa093e4b68
commit 47e7d2a668
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
2 changed files with 23 additions and 0 deletions

View file

@ -17,6 +17,14 @@ function _civicrm_api3_twingle_campaign_Getsingle_spec(&$spec) {
'api.required' => 0,
'description' => E::ts('The Twingle Campaign ID'),
];
$spec['cid'] = [
'name' => 'cid',
'title' => E::ts('Twingle Campaign CID'),
'type' => CRM_Utils_Type::T_STRING,
'api.required' => 0,
'description' => E::ts('A unique identifier for a TwingleCampaign generated by a hashing its id + name'),
];
$spec['name'] = [
'name' => 'name',
'title' => E::ts('Campaign Name'),