arev on "[Plugin: Forms: 3rd-Party Integration] Insightly Integration Not creating fields"

ساخت وبلاگ

I am having trouble with the plugin. It creates the First name and last name correctly, but the phone and email doesnt show up on the insightly contacts.

Below is the webform from insightly:
<form name="insightly_web_to_contact" action="https://googleapps.insight.ly/WebToContact/Create" method="post">
<input type="hidden" name="formId" value="1234567"/>
<input id="insightly_firstName" name="FirstName">
<input id="insightly_lastName" name="LastName">
<input type="hidden" name="emails[0].Label" value="Work"/>
<input id="emails[0]_Value" name="emails[0].Value" type="text"/>
<input type="hidden" name="phones[0].Label" value="Work"/>
<input id="phones[0]_Value" name="phones[0].Value" type="text"/>
<input type="submit" value="Submit"/></form>

After mapping it all debug log:
*** Service ***
Array
(
[name] => Lead Gen
[url] => https://api.insight.ly/v2.1/Contacts
[forms] => Array
(
[0] => cf7_210
)

[success] =>
[failure] =>
[timeout] => 10
[as-xpost] => json
[xpost-wrapper] =>
[your-name] => Yup
[your-email] => [email protected]
[phone] => 1234567890
[_wpcf7_is_ajax_call] => 1
)

*** Post (to Service) ***
Array
(
[timeout] => 10
[body] => {"name":"insightly_web_to_contact","formID":"1234567","FIRST_NAME":"Yup","LAST_NAME":"Yup","emails[0].Label":"Work","emails[0].Value":"[email protected]","phones[0].Label":"Work","phones[0].Value":"1234567890"}
[headers] => Array
(
[Authorization] => Basic YjFhOGMyYTYtYzljNi00YjkwLWFmOWYtNzZmMDg0OTNhZWM3
[Content-Type] => application/json
)

)

*** Response ***
Array
(
[headers] => Array
(
[cache-control] => no-cache
[pragma] => no-cache
[content-type] => application/json; charset=utf-8
[expires] => -1
[location] => https://api.insight.ly/v2.1/Contacts/162300022
[server] => Microsoft-IIS/7.5
[x-powered-by] => ASP.NET
[date] => Fri, 11 Mar 2016 00:19:29 GMT
[connection] => close
[content-length] => 492
[set-cookie] => snaptid=sac1prdc01ut04; path=/; HttpOnly; Secure
)

[body] => {"CONTACT_ID":162300022,"SALUTATION":null,"FIRST_NAME":"Yup","LAST_NAME":"Yup","BACKGROUND":null,"IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/621748/","DEFAULT_LINKED_ORGANISATION":null,"OWNER_USER_ID":1060118,"DATE_CREATED_UTC":"2016-03-11 00:19:30","DATE_UPDATED_UTC":"2016-03-11 00:19:30","VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"ADDRESSES":[],"CONTACTINFOS":[],"DATES":[],"TAGS":[],"LINKS":[],"CONTACTLINKS":[],"EMAILLINKS":[]}
[response] => Array
(
[code] => 201
[message] => Created
)

[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => snaptid
[value] => sac1prdc01ut04

I notice that if i copy the *** Response *** area
[body] => {"CONTACT_ID":162299685,"SALUTATION":null,"FIRST_NAME":"last test","LAST_NAME":"last test","BACKGROUND":null,"IMAGE_URL":"http://s3.amazonaws.com/insightly.userfiles/621748/","DEFAULT_LINKED_ORGANISATION":null,"OWNER_USER_ID":1060118,"DATE_CREATED_UTC":"2016-03-11 00:06:46","DATE_UPDATED_UTC":"2016-03-11 00:06:46","VISIBLE_TO":"EVERYONE","VISIBLE_TEAM_ID":null,"VISIBLE_USER_IDS":null,"CUSTOMFIELDS":[],"ADDRESSES":[],"CONTACTINFOS":[],"DATES":[],"TAGS":[],"LINKS":[],"CONTACTLINKS":[],"EMAILLINKS":[]}

And make one of those fields for example "Background" "123" check is value. the 123 will show up but it wont be dynamic. If i leave is value unchecked, it will not show up at all.

My assumption is i need to get the response area to show "emails[0].Label":Work,"phones[0].Label":Work

https://wordpress.org/plugins/forms-3rdparty-integration/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 104 تاريخ : شنبه 18 ارديبهشت 1395 ساعت: 4:07