Sign in to the Force.com (Salesforce.com)

Usage

rforcecom.login(username, password, instanceURL, apiVersion)

Arguments

username
Your username for login to Salesforce.com. In many cases, username is your E-mail address.
password
Your password for login to Salesforce.com.
Note: DO NOT FORGET your Security Token. (Ex.) If your password is “Pass1234″ and your security token is “XYZXYZXYZXYZ”, you should set “Pass1234XYZXYZXYZXYZ”.
instanceURL
(optional) Instance URL. If your environment is sandbox specify (ex:) “https://test.salesforce.com/”.
apiVersion
(optional) Version of the REST API and SOAP API that you want to use. (ex:) “35.0″ Supported versions from v20.0 and up.

Value

Session data.

Example

username <- "yourname@yourcompany.com"
password <- "YourPasswordSECURITY_TOKEN"
session <- rforcecom.login(username, password)