Salesforce.com interface to directly access Salesforce.com

Dependencies:   HTTPClient-SSL MbedJSONValue

Dependents:   df-2014-salesforce-hrm-k64f

Fork of SalesforceInterface by Doug Anson

Revision:
1:a7dca096e47d
Parent:
0:518b1ca956fc
Child:
7:97ea5ef906f7
--- a/SalesforceInterface.cpp	Wed Sep 17 21:36:19 2014 +0000
+++ b/SalesforceInterface.cpp	Thu Sep 18 16:50:39 2014 +0000
@@ -80,9 +80,7 @@
  // https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com#Obtaining_a_Token_in_an_Autonomous_Client_.28Username_and_Password_Flow.29
  //
  char *SalesforceInterface::getOauthToken(char *output_buffer,int output_buffer_length) {
-     if (this->haveCreds()) {
-         ALLOC_BUFFER(body);
-         
+     if (this->haveCreds()) { 
          // construct the OAUTH2 Token request body
          HTTPMap input;
          
@@ -98,7 +96,7 @@
          input.put("client_secret",this->m_client_secret);
          input.put("username",this->m_username);
          input.put("password",this->m_password);
-        
+                  
          // prepare the output buffer
          HTTPText output(output_buffer,output_buffer_length);