latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

API Notification help please…

Home Forums Community Forum API Notification help please…

This topic contains 4 replies, has 3 voices. Last updated by  Lawrence Black 3 years, 4 months ago.

Topic Author Topic
Posted: Monday Feb 6th, 2012 at 5:38 pm #4167

Hello,
Regarding API Notification: I’m new to this so please be patient.
We would like for s2Member to add a new registrant to our CRM once they have paid.
We use Zoho CRM and their documentation states:

Examples
Insert records into Zoho CRM from third-party applications

URL Format: https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&apikey=APIKEY&ticket=TICKET&xmlData=XMLDATA

XMLDATA example:




Web Download
contacto 1
apellido
testing@testing.com
Manager
1234567890
0987654321
1212211212
02927272626
292827622

 

 

This was taken from:
https://zohocrmapi.wiki.zoho.com/insertRecords-Method.html#Insert_records_into_Zoho_CRM_from_third-party_applications

How do we do this? Do we use the xmlData like it is shown?

Anyone’s help is greatly appreciated and we Thank You in advance.

  • This topic was modified 4 years, 11 months ago by  Jeffrey Morris. Reason: missing code snippet

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Monday Feb 6th, 2012 at 6:30 pm #4177

WOW,, I figured it out.

Posted: Wednesday Feb 8th, 2012 at 11:21 am #4459
Staff Member

Hi Jeffrey. Did you use s2Member’s API Notifications for this?

Posted: Saturday Feb 11th, 2012 at 2:46 am #4792

Yes, I used the API Notifications.
I replaced “XMLDATA” with the actual code given on Zoho’s site.

I just need to find a way to capture a phone number. I have it at PayPal that they must enter their phone number but have no idea of how to get it from the subscriber.

Any suggestions will be greatly appreciated.

Posted: Friday Aug 23rd, 2013 at 7:33 pm #56618

I am having the same problem:

Here is my API config:

https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=AUTHTOKENHERE&scope=crmapi&xmlData=

%%country%%
%%user_first_name%%
%%user_last_name%%
%%title%%
%%user_email%%
%%phone%%
%%state%%
%%city%%
Highest
false
Sample Desc

Here is the DOCS: https://www.zoho.com/crm/help/api/insertrecords.html#Examples

If I just paste this in my browser it works:

https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=AUTHTOKENHERE&scope=crmapi&xmlData=

USA
Michael
Testing
Boss
boss@web.com
555-55-5555
CA
San Diego
Highest
false
Sample Desc

The above pasted into my browser with the API token gets me a success response, but when I do is using the following API Notification URL:

https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=AUTHTOKENHERE&scope=crmapi&xmlData=

%%country%%
%%user_first_name%%
%%user_last_name%%
%%title%%
%%user_email%%
%%phone%%
%%state%%
%%city%%
Highest
false
Sample Desc

The reply I get from the API log is:

http://www.vantage-grp.com/hitech/wp-login.php?action=register
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0
array (
‘state’ => ‘response’,
‘transport_class’ => ‘WP_HTTP_curl’,
‘args’ =>
array (
‘method’ => ‘GET’,
‘timeout’ => 5,
‘redirection’ => 5,
‘httpversion’ => ‘1.1’,
‘user-agent’ => ‘WordPress/3.5; http://www.vantage-grp.com/hitech’,
‘blocking’ => true,
‘headers’ =>
array (
‘Accept-Encoding’ => ‘deflate;q=1.0, compress;q=0.5’,
),
‘cookies’ =>
array (
),
‘body’ => NULL,
‘compress’ => false,
‘decompress’ => true,
‘sslverify’ => false,
‘stream’ => false,
‘filename’ => NULL,
‘s2member’ => ‘130802’,
‘_redirection’ => 5,
‘ssl’ => true,
‘local’ => false,
),
‘url’ => ‘https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=ec0084cbac10cc65c71f68d4ed299faf&scope=crmapi&xmlData=’,
‘response’ =>
array (
‘headers’ =>
array (
‘server’ => ‘ZGS’,
‘date’ => ‘Fri, 23 Aug 2013 23:05:07 GMT’,
‘content-type’ => ‘text/xml;charset=UTF-8’,
‘transfer-encoding’ => ‘chunked’,
‘connection’ => ‘keep-alive’,
‘set-cookie’ =>
array (
0 => ‘bba2ee81f8=0a46afd37679736317d86bcdb5c70fce; Path=/’,
1 => ‘JSESSIONID=9838879822C4D15C4171431B7BDFEDF2; Path=/crm’,
2 => ‘crmcsr=66d2b4aa-8bb0-48f4-9bc0-1fd9636c1d17; Path=/; Secure’,
),
‘strict-transport-security’ => ‘max-age=432000’,
),
‘body’ => ‘

4600

Unable to process your request. Please verify if the name and value is appropriate for the “xmlData” parameter.
‘,
‘response’ =>
array (
‘code’ => 200,
‘message’ => ‘OK’,
),
‘cookies’ =>
array (
0 =>
WP_Http_Cookie::__set_state(array(
‘name’ => ‘bba2ee81f8’,
‘value’ => ‘0a46afd37679736317d86bcdb5c70fce’,
‘expires’ => NULL,
‘path’ => ‘/’,
‘domain’ => NULL,
)),
1 =>
WP_Http_Cookie::__set_state(array(
‘name’ => ‘JSESSIONID’,
‘value’ => ‘9838879822C4D15C4171431B7BDFEDF2’,
‘expires’ => NULL,
‘path’ => ‘/crm’,
‘domain’ => NULL,
)),
2 =>
WP_Http_Cookie::__set_state(array(
‘name’ => ‘crmcsr’,
‘value’ => ’66d2b4aa-8bb0-48f4-9bc0-1fd9636c1d17′,
‘expires’ => NULL,
‘path’ => ‘/’,
‘domain’ => NULL,
‘secure’ => ”,
)),
),
‘filename’ => NULL,
),
)

Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.