rforcecom.login(username, password, instanceURL, apiVersion)
- Your username for login to Salesforce.com. In many cases, username is your E-mail address.
- 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”.
- (optional) Instance URL. If your environment is sandbox specify (ex:) “https://test.salesforce.com/”.
- (optional) Version of the REST API and SOAP API that you want to use. (ex:) “35.0″ Supported versions from v20.0 and up.
username <- "email@example.com"
password <- "YourPasswordSECURITY_TOKEN"
session <- rforcecom.login(username, password)