![]() Have you come across this or found a solution? ![]() When I run the curl, it returns text to the screen, this makes it impossible to run a header to move the user from the action page to the confirmation page as headers have already been sent. I have had a problem when inserting a new lead, I wonder if you might ahve the answer. As you said, the Zoho documentation is sadly lacking. urlencode( $xml_data ) $curl = curl_init( $request_url ) Ĭurl_setopt( $curl, CURLOPT_RETURNTRANSFER, true ) Ĭurl_setopt( $curl, CURLOPT_CONNECTTIMEOUT, 5 ) Now below is the complete code which dynamically saves the data in the zoho crm using the zoho crm REST API Now looking on the request url, we have followed the request url format and filled with the required data Only concern is to check the mandatory fields for the module you are working with and making sure those fields are included in the xml Looking at the xml format, here I have created a static form for this example which can be dynamic as well. Now lets go to the code snippetsįirst we need to define the auth token in a variable. I will here be using the XML format to demonstrate the example. Currently, the following response formats are supported ![]() The type of response being generated will depend on the ‘format’ specified in the request URL. You can use the browser mode by logging into your account. CREATOR Username or Email ID&PASSWORD=Zoho CREATOR Password To generate the Auth Token, you need to send an authentication request to Zoho Accounts using the URL format below. We can get the auth token by two means, either by using the api mode or by browser mode I looked for it over the web but everything I got was in bits and pieces, so I thought of writing this down so that people looking for something like this would get everything at one place.īefore making the api call to add records with the rest apis we need to know some prerequisites While working in a project earlier this month, I needed to insert certain data in the zoho form dynamically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |