Salesforce API Library - Rough Draft |
[eluser]Jay Logan[/eluser]
We started using Salesforce at my job and instead of building out apps using the Saleforce APEX language, I've been using CodeIgniter to build the app and sending data over to Salesforce through their API. It's been working like a charm. I'm sure there is plenty of room for improvement with the attached code but it will definitely give you a good start on working with their API. And the documentation on the link below will help you on the SF end too. http://www.salesforce.com/us/developer/d...me=webhelp Just drop the zipped filed into your library folder, load the library, then you can add data like this: Code: $this->load->library('salesforce'); And that will return the Salesforce response array. Enjoy.
[eluser]onblur[/eluser]
Hey. Thanks for posting this. I'm looking at some CI and Integration and sure this will come in handy. Greg.
[eluser]naren_nag[/eluser]
This is very cool. We've just been asked to integrate with Salesforce! Will use and let you know. Thanks, Naren
[eluser]BrandonDurham[/eluser]
I'm getting two errors when trying to use this code: Code: Severity: Notice Code: Severity: Notice Any idea what the problem might be? I really appreciate any help I can get!
[eluser]shaffick[/eluser]
Brandon, I might be too late, but I fixed it by installing soap on my web server (enable it in php.ini). edit: also, API access is allowed by Enterprise, Unlimited and Developer edition http://www.salesforce.com/crm/editions-pricing.jsp
[eluser]shaffick[/eluser]
Edit: Works with CI 2.0.2. Tested. /edit Here's another little rough, "hack" if I may (mostly because I was getting an error with __setSoapHeaders() ) add to Salesforce.php Code: function send_email($array_object) Usage: Code: $email = new SingleEmailMessage(); Note: Emails will be sent as the email login you have in Salesforce.php Line 17. Reply Address can be anything
[eluser]Unknown[/eluser]
I am unable to download the zip.... Is there another place where this is located? This seems perfect for what I am doing...
[eluser]jakelehner[/eluser]
I'm also having trouble accessing the attached file. Is there another place to obtain this library? Or another sales force API library?
[eluser]Unknown[/eluser]
I'm having trouble downloading as well. I'm very interested to see this as I'm embarking on the same project.
[eluser]Jason Hamilton-Mascioli[/eluser]
Try this thread... http://ellislab.com/forums/viewthread/212536/ |
Welcome Guest, Not a member yet? Register Sign In |