function DrupalSalesforce::__construct in Salesforce Suite 7
Same name and namespace in other branches
- 5.2 salesforce_api/salesforce.class.inc \DrupalSalesforce::__construct()
Constructs a DrupalSalesforce object with a set of API credentials.
Parameters
$username: The username used to login to Salesforce; should be an e-mail address.
$password: The password used to login to Salesforce.
$token: The security token appended to the password for logging in via the web service. Set by logging into Salesforce and navigating to Setup > My Personal Information > Reset My Security Token.
File
- salesforce_api/
salesforce.class.inc, line 35 - Defines the class used for communicating with the Salesforce server.
Class
Code
function __construct($username, $password, $token) {
// Set the appropriate member values.
$this->username = $username;
$this->password = $password;
$this->token = $token;
// Create the client object.
$this->client = new SforceEnterpriseClient();
}