Jump to content


robert.keir

Member Since 04 Sep 2012
Offline Last Active Jun 30 2020 05:32 AM
-----

#15651 Gravity Forms Integration Solution [SOLVED AND AVAILABLE]

Posted by robert.keir on 26 April 2019 - 05:37 AM

Hi All,

 

We are trying to use restful API to create a new opportunity using version 7.0 of x2crm.

 

Can someone comment on our PHP code below (I've changed the URL Address):

 

<?php
 
$request = new HttpRequest();
$request->setMethod(HTTP_METH_POST);
 
$request->setQueryData(array(
  'assignedTo' => 'Anyone',
  'c_Assigned_Dealer' => '1',
  'Name' => '1',
  'updatedBy' => 'Anyone',
  'visibility' => '1'
));
 
$request->setHeaders(array(
  'Connection' => 'keep-alive',
  'content-length' => '',
  'accept-encoding' => 'gzip, deflate',
  'cookie' => 'PHPSESSID=v6ni4nvrfs1p5bma80qcs6v2s3',
  'Host' => 'www.xxxx.co.za',
  'Accept' => '*/*',
  'User-Agent' => 'PostmanRuntime/7.11.0',
  'Authorization' => 'Basic YWRtaW46VG0zQlU5d1Fvd3pWVjd4UTZ3NkI0R2p6N3N4WWRsdUw=',
  'Content-Type' => 'application/json'
));
 
try {
  $response = $request->send();
 
  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}
 
We keep getting the following error:
 
{
    "httpHeaders": {
        "Content-Type": "application/json; charset=utf-8"
    },
    "reqHeaders": {
        "Content-Length": "0",
        "Content-Type": "application/json",
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate",
        "Authorization": "Basic YWRtaW46VG0zQlU5d1Fvd3pWVjd4UTZ3NkI0R2p6N3N4WWRsdUw=",
        "Connection": "keep-alive",
        "Cookie": "PHPSESSID=v6ni4nvrfs1p5bma80qcs6v2s3",
        "Host": "www.xxxxx.co.za",
        "User-Agent": "PostmanRuntime/7.11.0"
    },
    "message": "Missing or malformed data sent to server.",
    "error": true,
    "status": 400
}
 
Any help would be appreciated. 
 
Thank you.



#15650 Gravity Forms Integration Solution [SOLVED AND AVAILABLE]

Posted by robert.keir on 26 April 2019 - 01:48 AM

Hi Eugene,

 

This is great! We have a separate application that does not use GF. Do you perhaps have the PHP code for what you did in your example above?

 

Nice to see you the other day!

 

Thanks,

Rob




#15211 WhatsApp integration - Anyone

Posted by robert.keir on 25 October 2018 - 11:03 PM

I've just seen this. https://www.messengerpeople.com/This would be a great integration into X2CRM.




#15147 Admin.MaxFileSize

Posted by robert.keir on 17 October 2018 - 01:09 AM

I tested this and works well. Thanks Attlia.




#15122 Admin.MaxFileSize

Posted by robert.keir on 15 October 2018 - 11:06 AM

Hi All,

 

I've just upgraded from 6.9.3 to 7.0 and now we cannot send any emails with attachments of any size. 

 

This is the error we are getting:

Property "Admin.maxFileSize" is not defined. /chroot/home/xxxxx/ZZZZZ/html/XXXX/framework/base/CComponent.php L130

 

Is there a quick fix for something like this?

 

Thanks,

Rob




#13440 Your X2Engine session has expired

Posted by robert.keir on 23 June 2017 - 05:35 AM

Works nicely! Thanks




#13438 No Process capability for Quotes Module

Posted by robert.keir on 23 June 2017 - 03:48 AM

Brilliant - works well for me! Thanks Eugene. Was great talking to you yesterday!