PHP Class For Submitting Leads to MyMedLeads API

Posted Aug 06, 2013

As taken from their website, is a "Lead Management Solution that tracks, manages and converts inquiries into paying patients". Working for a lead generation website, I had to connect to the MyMedLeads API to submit our leads to them. MyMedLeads provided the http submission code in PHP and I had to query our database information and use their code to submit it to them.

This sounded simple enough, since they were already providing us, what seemed like, the bulk of the code. At the end, the code on our side had to include:

  • Calls from 3 different lead sources on our side
  • Error detection, so we could monitor any issues
  • Saving of tracking data, so we knew if and when we already submitted a lead
  • And finally, the submission of the lead, in the format they want, through their API

Since the code from MyMedLeads was in the form of a PHP class, I created another class to perform the above tasks, them submit the lead data into their MyMedLeads client class.

This is how some of the code looked:


Comments are currently turned off

Latest Discussions

  • Carlos: Thank you!
    May 16, 2014 | Replies (0)
  • Jessica: Great info, thanks!
    May 15, 2014 | Replies (1)
  • Walter: Thanks, you totally saved me a bunch of searching around just now. I was setting up a percona xtradb...
    Feb 25, 2014 | Replies (0)
  • Avi: I've found the reason of the problem in my case. It's a bug as described here :
    Dec 12, 2013 | Replies (0)
  • Avi: I've also met that behavior twice on 5.6.12 slaves. However, i didn't find the root cause of that....
    Dec 12, 2013 | Replies (0)