Lime Light CRM API

I put up a new repository at GitHub yesterday that converts the entire Lime Light CRM API into a simple PHP class. The superclass (creatively called LimeLight) has two child classes, Membership and Transaction (with respect to the pertinent Lime Light APIs). This is a work-in-progress and is still in beta…it’s mostly bug-free. As there is no official PHP implementation (only recommendations and companies that will integrate for you), I figured it was high-time for an open source version. I’ve written this code probably a dozen times and frankly I’m tired of rewriting it.

Also, I lack the time to integrate Lime Light outside my existing client scope, and this is as good a way as any to put it in everyone’s hands.

It’s pretty rough and I’m working on building in controls to provide better options and more accurately reflect the API. In the meantime, take a look at the source code here, and feel free to fork it/improve it/etc. I’ve learned and benefited a great deal from open source solutions and am looking forward to giving back.

If you haven’t decided on a CRM solution yet…and you go with Lime Light CRM…tell them I sent you.

NOTE: Neither True Marketing Partners nor Lime Light CRM paid me to write this post or recommend their product. IF you buy Lime Light CRM and if you mention me on the contract, they’ll kick me back. If you buy it and don’t mention me or don’t put me down as your reference on the contract, I won’t get one cent. If you’re already using Lime Light and want to expand from the web forms to the API, this is a good place to start. I have to have a live version within a week anyway… 😉

4 thoughts on “Lime Light CRM API”

  1. Thanks for making this open source!

    I’ve been playing with the code tonight and I’m having some issues getting it to work. Have any tips on the proper order of the methods to call?

    1. I am so sorry…I just now saw this as I was doing my quarterly updates 🙁

      I sent you a direct email reply, hope that helps if you’re still having issues.

      You’re very welcome!

      Erik

  2. Erik;

    Kind of a long shot here, but I am playing with this code to try and make a simplified admin panel for my limelight instance. However im having some difficulties getting the code to function properly. I know this is an old thread so perhaps you have abandoned the project but I figured I would ask if you had any additional documentation or perhaps sample code showing one of the classes being utilized. I did run through the code but perhaps I am missing something. I have added it to the existing limelight API test SDK that they give out and edited all the form names to match you variable names but on something simple such as displaying a customer based on customer ID $limelight_membership->CustomerView($customer_id) im getting an error stating that I cant call a private function although the class was instantiated and I added static variables $api_username=xxxxx $api_password=xxxxx $lime_light_url=xxxx and $customer_id=xxxxx then instantiated the class and called the CustomerView function and tried to just echo out a reponse but I keep getting the error regarding the provate function. I really appreciate your effort and should I get this up and running anything I add I will be sure to submit to you for future inclusion.

    1. It’s been a while since I’ve taken a look at this, but I wouldn’t go quite so far as to say it’s abandoned. 😉 It’s been long enough that it’s possible this code is no longer valid.

      You won’t ever be able to call a private function from a class instance (private functions are only available to the class and object from within the code). Generally speaking, you don’t want to access business logic directly (this could have been clearer and written better). Instead, I have the public function GetResponse() to retrieve that data. Using your example:


      $ll_membership = new Membership($api_username, $api_password, $lime_light_url); // remaining parameters are optional

      $customer = $ll_membership->GetResponse('viewcustomer', $customer_id);

      var_dump($customer);

      Please feel free to ask if you have any further questions!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.