You need to sign in to do that
Don't have an account?
Integrating salesforce and Google plus. posting the message from salesforce to google plus.
Please tell me the Endpoint url to post in GooglePlus.
HttpRequest httpReqm = new HttpRequest();
httpReqm.setMethod('POST');
String EndPointURL1 = 'https://www.googleapis.com/auth/plus.me';
httpReqm.SetEndpoint(EndPointURL1);
String AuthHead = tokenType + ' '+AccessToken ;
httpReqm.setHeader('Authorization',AuthHead);
httpReqm.setHeader('Content-Type','application/json');
HttpResponse httpResm = new HttpResponse();
Integrating salesforce and Google plus. I am trying to post the message from salesforce to google plus.
ERROR:
Status=HTTP method POST is not supported by this URL, StatusCode=405.
Thanks In Advance,
Ranjith
Hi,
Set endpoint as follows:
req.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm() + EndPointURL1);
Please refer following links for examples:
http://salesforce.stackexchange.com/questions/4692/screen-scrape-salesforce-with-rest-get-call-from-apex
http://salesforce.stackexchange.com/questions/13282/updating-multi-currency-rates-from-apex