therouv / salesforce-rest-api-php-wrapper
SalesForce REST API PHP Wrapper
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.13
This package is auto-updated.
Last update: 2024-11-26 01:45:41 UTC
README
Description
This is a PHP Wrapper for the Salesforce Rest API.
Grant Type
This library currently only supports the Username-Password authentication flow or password grant type.
Consumer Key / Secret
To retrieve your consumer key and secret, you will need to login to the instance (or sandbox instance). Click Setup at the top of the page and then navigate to Create -> Apps. Here you will see several types of applications: Apps, Subtab Apps, and Connected Apps. Click the New button inside the Connected Apps section. Fill out the required form fields and check the Enable OAuth Settings checkbox. When using the username/password grant type, the Callback URL is not required, however you will still be required to enter a value.
Sandbox Setup
To create a new sandbox instance, login to your main salesforce instance. Click Setup at the top of the screen and navigate to Deploy -> Sandboxes. Here you can choose a type of sandbox to deploy.
API Versions
To see available API versions, you can navigate to https://<your-instance-subdomain>.salesforce.com/services/data
.
Generally you should be fine to use the most recent version. If you are not sure, please check the SOQL documentation
Security Token
The Security Token used for login is emailed to the user on creation and when they reset their password. If you do not have access to this information, you will most likely need to reset the user's password.