{"id":14294021,"date":"2021-04-08T15:00:17","date_gmt":"2021-04-08T15:00:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/conditional-api-call-resolved\/"},"modified":"2021-04-08T15:00:17","modified_gmt":"2021-04-08T15:00:17","slug":"conditional-api-call-resolved","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/conditional-api-call-resolved\/","title":{"rendered":"Conditional API call resolved"},"content":{"rendered":"<p>This question was asked a long time ago but maybe someone is looking online for the solution like me today.<br \/>\nwith contact form 7 I solved it using:<br \/>\n[select * mailuplist &#8220;Yes | 1&#8221; &#8220;No | 0&#8221;]<br \/>\nso in the integration of the api plugin I have inserted &#8220;list&#8221; next to &#8220;mailuplist&#8221;.<br \/>\nIn this way if the user selects &#8220;yes&#8221; the id of the list is 1 (real list), if he selects &#8220;no&#8221; the id of the list is 0 (zero) which in this case is a list that does not exist: in this way the contact does not arrive on mailup<\/p>\n","protected":false},"template":"","class_list":["post-14294021","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14294021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14294021\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14294021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}