{"id":4387655,"date":"2013-12-07T00:26:53","date_gmt":"2013-12-07T00:26:53","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/adding-contacts\/"},"modified":"2016-08-21T13:16:23","modified_gmt":"2016-08-21T13:16:23","slug":"adding-contacts","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/adding-contacts\/","title":{"rendered":"Adding Contacts"},"content":{"rendered":"<p>Hello,<\/p>\n<p>the contact add method is working great.  My call:<\/p>\n<p>$contact = $infusionsoft-&gt;contact( &#8216;add&#8217;, array(<br \/>\n\t&#8216;FirstName&#8217; =&gt; &#8221;,<br \/>\n\t&#8216;LastName&#8217; =&gt; &#8221;,<br \/>\n\t&#8216;Email&#8217; =&gt; &#8216;jtest@mmedia.com&#8217;<br \/>\n) );<\/p>\n<p>The contact in InfusionSoft that is created has a status of &#8220;non-marketable&#8221;.  Question 1: how do I fix this using the API calls?<\/p>\n<p>Question 2:  I need to add a tag to this new contact.  The method call that follows returns &#8220;Message: No method matching arguments: java.lang.String, java.util.HashMap&#8221;:<\/p>\n<p>$contact = $infusionsoft-&gt;contact( &#8216;addToGroup&#8217;, array(<br \/>\n\t&#8216;contactIDNumber&#8217; =&gt; 15,<br \/>\n\t&#8216;groupIDNumber&#8217; =&gt; 109<br \/>\n) );<\/p>\n<p>I have tried every variation of I can think of (putting quotes around the numeric values, changing the case on the method name).  Can someone tell me what I am missing?<\/p>\n<p>Thanks!!!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/infusionsoft-for-developers\/<\/p>\n","protected":false},"template":"","class_list":["post-4387655","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4387655","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\/4387655\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4387655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}