Salesforce PHP REST Client - php

I'm trying to utilise Salesforce connected app to push data from my application to Salesforce CRM.
Backend from where i plan to push data is PHP based.
From Salesforce developer website only resources available for PHP to star with are SOAP client which seems to be pretty outdated PHP Toolkit
and REST example using CURL and OAuth REST OAuth PHP
Does anyone know if there is any official PHP Client library to operate with Salesforce Accounts/Contacts/Events etc, or i will end up writing my own REST wrapper.
Thanks!

You can give a shot to https://github.com/goetas-webservices/salesforce-enterprise-client
It is a pure PHP SOAP client with IDE type hinting support and PSR-7 compatible.

Related

How to integrate python/django project with a webservice that provides api only for php?

I work on a django website. Currently, I need to integrate it with a third-party API that provides only PHP endpoints and some shitty documentation that instructs how to build PHP requests. The API provider introduces a PHP client containing a class that handles requests to PHP API webservice via SOAP.
First, is it possible to build python client that will interact with PHP endpoints without knowing server-side trickery of the API provider? Should I dive deeper into PHP client source code and try to rewrite it in python?
Second, should I create intermediary PHP webservice that will integrate third-party PHP API and provide a precise API to interact with python client.
Is there any better option?
P.S. Please, note that I'm new to PHP and SOAP.
Just like any other API. You just have to use the PHP client as a guide to build the API client in python. If you feel it's no help at all, throw it away and look what the endpoints are and what they spit out.
In the end, the endpoints on the remote server can be programmed in Smalltalk for you care. The API client only cares about what parameters to send to the server and what the response looks like.
So pick your basics:
requests for network protocol
soap client
authentication if oauth
and start coding ;) Good luck!

how to passively access google apis using google client?

Is it possible to passively access google API using google api php client library? What I want to do is connect to google API by providing necessary credentials (not using oauth).
Basically, my oauth authentication will be in googleads php lib and want to access resources using php client lib. Or is there any way to accomplish this? Thanks.
EDIT:
What I really curious about for hours is integrating those two libraries (GoogleAds PHP Api and Google API Client API). The former uses pure Oauth and the latter uses 'Google_Client' implementation in accessing Google API.

Peferred way to call AWS Api Gateway using PHP

The AWS Api gateway generate SDK for JS, Swift and Android (Java) by default. So I want to call to the AWS Api Gateway using PHP, besides hand coding the HTTP request, are there any better choice?
While you will not have modeled classes, the AWS SDK for PHP v3 can be used to call/sign API Gateway APIs.
I had reasonably good success with swagger.io. Log into the API Gateway, export your Swagger definitions in YAML, paste them into the editor and then you can generate the PHP client from the site.

Can anyone provide me the PHP library for salesforce oauth2.0 REST API?

Right now m developing a web app which acts as a consumer for http://salesforce.com but I am unable to make a controller for the API implementation.
Can anyone provide me the php library for salesforce oauth2.0 REST API...?
I have recently Open Sourced a Cakephp 2.x datasource I have created to interact with Salesforce Enterprise - not sure if its suitable for what you want as you havent specified whether you are using a framework or not but take a look:
CakePHP Salesforce Enterprise Datasource
This uses the developerforce PHP toolkit as mentioned in some other posts but simplifies a whole lot of things!
I don't believe there is anything official, but you can take a look at the Salesforce REST API client used in Workbench (PHP-based app) to get you started:
http://code.google.com/p/forceworkbench/source/browse/trunk/workbench/restclient/RestClient.php

PHP Soap (Server)

I am trying to create a webservice using the PHP Soap extension and I am having problems with the .wsdl. Is there an easy way to generate 2.0 wsdl's? Where is a good site (or book) that I can look to in order to determine how to build the WSDL? I have no problem getting my soap client to retrieve soap messages from other web services so I know soap is installed and working. I have found a few links out there that generate WSDL's for you, but most of the sites are down. Any help pointing me in the right direction would be helpful
PHP does not have a built-in WSDL generation utility. I would recommend using Zend_Soap_Server which supports WSDL generation via its Autodiscover feature.

Categories