Salesforce.com interface to directly access Salesforce.com
Dependencies: HTTPClient-SSL MbedJSONValue
Dependents: df-2014-salesforce-hrm-k64f
Fork of SalesforceInterface by
Revision 1:a7dca096e47d, committed 2014-09-18
- Comitter:
- ansond
- Date:
- Thu Sep 18 16:50:39 2014 +0000
- Parent:
- 0:518b1ca956fc
- Child:
- 2:35bd3f2d21df
- Commit message:
- removed mbed.h from HTTPClient.cpp to enable K64F builds
Changed in this revision
HTTPClient-SSL.lib | Show annotated file Show diff for this revision Revisions of this file |
SalesforceInterface.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/HTTPClient-SSL.lib Wed Sep 17 21:36:19 2014 +0000 +++ b/HTTPClient-SSL.lib Thu Sep 18 16:50:39 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/ansond/code/HTTPClient-SSL/#debaeb6006a7 +http://mbed.org/users/ansond/code/HTTPClient-SSL/#e3c8f7d2d037
--- 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);