Direct API calls from code
-
One of my favorite things about this plugin is the ability to use the API shell for querying directly in code, like $response = $salesforce_api->query(…
This works great for me querying the API, but I’d really like to venture into actually creating/updating objects in SF via the shell as well.
(This is absolutely outside of the scope of this plugin and support and has nothing to do with sync’ing, but I thought I’d ask if you had any tips/warnings for me.)
I see the object_create and object_upsert methods but can’t get to the bottom of the $params and $options they require?
Maybe I’d be able to even use the api_call or api_http_request methods directly? I’d love to be able to just pass JSON to the API which would let me proceed with Salesforce’s own REST API documentation. If I can just get my foot in the door….Thanks guys
- The topic ‘Direct API calls from code’ is closed to new replies.