Last Updated: Sept 2021 BDP WebAPI Documentation BDP Rest API Basics The BDP Media restful API allows authenticated users to receive orders for new media and load media remotely. BDP restful APIs follow restful principles. Authenticating a Request BDP APIs use a simplified version of the Amazon S3 method for authentication. Authentication is provided by […]
Articles Tagged: developers
Email date placeholder formats
BDP uses the standard PHP Date function to create dates, which enables you to format the date in the way that you choose. For example, an email template contains the following date placeholder: {{ bdDate (action.actionDate,”l, jS F Y”) 1 }} at {{ bdDate (action.actionDate,”H:i”) 1 }} This will display, for example, “Sunday, 5th August […]
Using onComplete() in the BDP snippet
If you wish to use jQuery in your client’s website that requires BDP to have loaded before executing, you can use the onComplete() function. The following example uses onComplete() in conjunction with the sharrre jQuery plugin to allow social shares of the specific property the user is currently looking at.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
onComplete : function(){ $('#twitter').sharrre({ share: { twitter: true }, template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Tweet</div></a>', enableHover: false, enableTracking: false, buttons: { twitter: {via: '_JulienH'}}, click: function(api, options){ api.openPopup('twitter'); api.simulateClick(); } }); $('#facebook').sharrre({ share: { facebook: true }, template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Like</div></a>', enableHover: false, enableTracking: false, click: function(api, options){ api.simulateClick(); api.openPopup('facebook'); } }); $('#googleplus').sharrre({ share: { googlePlus: true }, template: '<a class="box" href="#"><div class="count" href="#">{total}</div><div class="share"><span></span>Google+</div></a>', enableHover: false, enableTracking: false, click: function(api, options){ api.simulateClick(); api.openPopup('googlePlus'); } }); |
Email templates – adding Applicant and Vendor placeholders
Applicant placeholders. The Applicant details can be retrieved by prefixing available fields with aContact. For example
1 |
{{ aContact.groupSalutation }} |
will insert the group salutation of the contact. The contact group can be drilled-down into. For example:
1 |
{{ aContact.primaryContact.email1 }} |
will retrieve the email address of the primary contact. Available fields for retrieval are: salutation Contents of the Salutation box if […]
Rule Boolean
Rule Boolean allows you to perform logic on rules. A practical example of this might be “Has the vendor returned the Money Laundering declaration document? If so, do not process next rule, if not process next rule to send a reminder.” Rule Boolean is entered into the Rule Boolean input box when creating or editing […]