{"id":4709,"date":"2015-07-16T01:15:47","date_gmt":"2015-07-16T01:15:47","guid":{"rendered":"http:\/\/www.jitendrazaa.com\/blog\/?p=4709"},"modified":"2015-08-29T00:45:48","modified_gmt":"2015-08-29T00:45:48","slug":"using-curl-with-salesforce-rest-api","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/using-curl-with-salesforce-rest-api\/","title":{"rendered":"using cURL with Salesforce Rest API"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"https:\/\/workbench.developerforce.com\/\">Workbench <\/a>is one of widely used tool in Salesforce when it comes to exploring REST API of Salesforce. However\u00a0I wanted to export REST API response\u00a0in Binary format and therefore used cURL. <a href=\"http:\/\/curl.haxx.se\/\">cURL <\/a>is open source command line library mostly used to test\u00a0http request. It can be downloaded from <a href=\"http:\/\/curl.haxx.se\/download.html\">here<\/a>\u00a0and official documentation about <a href=\"http:\/\/curl.haxx.se\/docs\/httpscripting.html\">how to use cURL can be referred\u00a0from here<\/a>.<\/p>\n<p style=\"text-align: justify;\">To use cURL with Salesforce REST API, we will need to use <a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.api_rest.meta\/api_rest\/intro_understanding_username_password_oauth_flow.htm\">username &#8211; password flow of OAuth2<\/a>. To use OAuth2, we need to create connected App. You can check &#8220;Create Connected app&#8221; section of <a href=\"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/login-to-salesforce-from-salesforce-using-authentication-provider\/\">this post<\/a>. You can enter any URL for callback or if you have already created any connected app in past, then it can be used. After creating connected app, note &#8220;Consumer key&#8221; and &#8220;Consumer Secret&#8221; somewhere.<\/p>\n<p style=\"text-align: justify;\">create file &#8220;LoginInfo.txt&#8221; file which will have all required login information in URL encoded\u00a0format<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\ngrant_type=password&amp; client_id= 3MVG9iTxZANhwsdsdsdsdspr0Lu3QNRNKk4c2FejzTys5Mlp43UeSHBuhWWgRjEUyV6xE7N0GostjR3sRat &amp; client_secret=21961212323233121943 &amp; username=jitendra.zaa@demo.com &amp; password=myPWDAndSecurityToken\r\n<\/pre>\n<p style=\"text-align: justify;\">make sure there is no space in above file. I have added some space for sake of readability.<\/p>\n<p style=\"text-align: justify;\">grant_type=password informs Salesforce to use &#8220;Username and password&#8221; flow of OAuth2, We are also passing client_id, client_secret, username and password.<!--more--><\/p>\n<p><strong>1. Login to Salsforce using cURL<\/strong><\/p>\n<p>Run below command to login into Salesforce<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -X POST -d @LoginInfo.txt https:\/\/login.salesforce.com\/services\/oauth2\/token\r\n<\/pre>\n<p>Output :<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{&quot;id&quot;:&quot;https:\/\/login.salesforce.com\/id\/00D90000000YnViEAK\/00590000000Gl5VAAS&quot;, &quot;issued_at&quot;:&quot;1437005678627&quot;, &quot;token_type&quot;:&quot;Bearer&quot;, &quot;instance_url&quot;:&quot;https:\/\/shivasoftdemo-dev-ed.my.salesforce.com&quot;, &quot;signature&quot;:&quot;RlUOj40dyd0bhSZPNIKqE7Jp7DpyXSKULEFaYolW\/3I=&quot;, &quot;access_token&quot;:&quot;00D90000000YnVi!ARIAQB0fu5fjPy_ JClQ7B343ffdfRcPv0toe7QcotaZu1aWJnVmN2enCLAeUKBQVcnSvR3JjDz20 2LfRpGTRzaCdsds6lUBnaQ&quot;}\r\n<\/pre>\n<p>Above output returned in JSON format is not readable so we can add header &#8220;PrettyPrint&#8221; in REST API request to return formatted json response.<\/p>\n<p><strong>2.\u00a0Login to Salsforce using cURL with PrettyPrint option<\/strong><\/p>\n<p>new request will look like :<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -X POST -d @LoginInfo.txt https:\/\/login.salesforce.com\/services\/oauth2\/token -H &quot;X-PrettyPrint:1&quot;\r\n<\/pre>\n<p>Output :<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;id&quot; : &quot;https:\/\/login.salesforce.com\/id\/00D90000000YnViEAK\/005900df000Gl5VAAS&quot;,\r\n  &quot;issued_at&quot; : &quot;1437005809464&quot;,\r\n  &quot;token_type&quot; : &quot;Bearer&quot;,\r\n  &quot;instance_url&quot; : &quot;https:\/\/shivasoftdemo-dev-ed.my.salesforce.com&quot;,\r\n  &quot;signature&quot; : &quot;3PD9nGTtpis23aWNP8IPtL3sYNuApFdfdd8eDa2Rc=&quot;,\r\n  &quot;access_token&quot; : &quot;00D90000000YnVi!ARIAQB0fu5fjPy_JClQ7BrkkyX3RcPvdfdaWJnVmN 2enCLAeUKBQVcnSvR3JjDz202LfRpGTRzaCmsC6lUBnaQ&quot;\r\n}\r\n<\/pre>\n<p>If login is success then we will get response as shown above. Extract &#8220;access_token&#8221; and &#8220;instance_url&#8221; from above response, as it will be used on every subsequent API calls.<\/p>\n<p>As we received session id in form of &#8220;access_token&#8221;, we can use cURL exactly like workbench as shown in below example.<\/p>\n<p><strong>3. Example &#8211; Get information about all available REST API in Salesforce<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -H &quot;Authorization: Bearer 00D90000000YnVi!ARIAQBdfu5fjPy_JClQ7BrkkyX3RcPv0toe 7QcotaZu1aWJnVmN2enCLAeUKBQVcnSvR3JjDz202LfRpGTRzaCmsC6lUBnaQ&quot; -H &quot;X-PrettyPrint:1&quot; https:\/\/shivasoftdemo-dev-ed.my.salesforce.com\/services\/data\/v34.0\/\r\n<\/pre>\n<p>Don&#8217;t forget to include Bearer attribute in double quotes as session id contains exclamation mark and it creates issue while sending request.<\/p>\n<p>Output :<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n{\r\n  &quot;limits&quot; : &quot;\/services\/data\/v34.0\/limits&quot;,\r\n  &quot;sobjects&quot; : &quot;\/services\/data\/v34.0\/sobjects&quot;,\r\n  &quot;support&quot; : &quot;\/services\/data\/v34.0\/support&quot;,\r\n  &quot;connect&quot; : &quot;\/services\/data\/v34.0\/connect&quot;,\r\n  &quot;query&quot; : &quot;\/services\/data\/v34.0\/query&quot;,\r\n  &quot;theme&quot; : &quot;\/services\/data\/v34.0\/theme&quot;,\r\n  &quot;queryAll&quot; : &quot;\/services\/data\/v34.0\/queryAll&quot;,\r\n  &quot;nouns&quot; : &quot;\/services\/data\/v34.0\/nouns&quot;,\r\n  &quot;knowledgeManagement&quot; : &quot;\/services\/data\/v34.0\/knowledgeManagement&quot;,\r\n  &quot;tooling&quot; : &quot;\/services\/data\/v34.0\/tooling&quot;,\r\n  &quot;chatter&quot; : &quot;\/services\/data\/v34.0\/chatter&quot;,\r\n  &quot;analytics&quot; : &quot;\/services\/data\/v34.0\/analytics&quot;,\r\n  &quot;recent&quot; : &quot;\/services\/data\/v34.0\/recent&quot;,\r\n  &quot;composite&quot; : &quot;\/services\/data\/v34.0\/composite&quot;,\r\n  &quot;process&quot; : &quot;\/services\/data\/v34.0\/process&quot;,\r\n  &quot;licensing&quot; : &quot;\/services\/data\/v34.0\/licensing&quot;,\r\n  &quot;identity&quot; : &quot;https:\/\/login.salesforce.com\/id\/00D90000000YnViEAK\/00590000000Gl5VAAS&quot;,\r\n  &quot;flexiPage&quot; : &quot;\/services\/data\/v34.0\/flexiPage&quot;,\r\n  &quot;search&quot; : &quot;\/services\/data\/v34.0\/search&quot;,\r\n  &quot;quickActions&quot; : &quot;\/services\/data\/v34.0\/quickActions&quot;,\r\n  &quot;wave&quot; : &quot;\/services\/data\/v34.0\/wave&quot;,\r\n  &quot;appMenu&quot; : &quot;\/services\/data\/v34.0\/appMenu&quot;,\r\n  &quot;compactLayouts&quot; : &quot;\/services\/data\/v34.0\/compactLayouts&quot;,\r\n  &quot;actions&quot; : &quot;\/services\/data\/v34.0\/actions&quot;,\r\n  &quot;tabs&quot; : &quot;\/services\/data\/v34.0\/tabs&quot;\r\n}\r\n<\/pre>\n<figure id=\"attachment_4715\" aria-describedby=\"caption-attachment-4715\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Using-cURL-with-Salesforce-REST-API.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-4715\" src=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Using-cURL-with-Salesforce-REST-API.png?resize=600%2C522&#038;ssl=1\" alt=\"Using cURL with Salesforce REST API\" width=\"600\" height=\"522\" srcset=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Using-cURL-with-Salesforce-REST-API.png?w=843&amp;ssl=1 843w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Using-cURL-with-Salesforce-REST-API.png?resize=300%2C261&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Using-cURL-with-Salesforce-REST-API.png?resize=624%2C543&amp;ssl=1 624w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-4715\" class=\"wp-caption-text\">Using cURL with Salesforce REST API<\/figcaption><\/figure>\n<p><strong>Making Salesforce REST API request without SessionId<\/strong><\/p>\n<p>Curl works like browser, If we try to access REST API\u00a0directly from browser then we get below error<\/p>\n<figure id=\"attachment_4781\" aria-describedby=\"caption-attachment-4781\" style=\"width: 824px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4781\" src=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId.png?resize=824%2C248&#038;ssl=1\" alt=\"Salesforce REST API without SessionId\" width=\"824\" height=\"248\" srcset=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId.png?w=824&amp;ssl=1 824w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId.png?resize=300%2C90&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId.png?resize=624%2C188&amp;ssl=1 624w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/a><figcaption id=\"caption-attachment-4781\" class=\"wp-caption-text\">Salesforce REST API without SessionId<\/figcaption><\/figure>\n<p>If we try to do same with cURL then we will get same error:<\/p>\n<figure id=\"attachment_4782\" aria-describedby=\"caption-attachment-4782\" style=\"width: 989px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId-Using-Curl.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4782\" src=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId-Using-Curl.png?resize=989%2C222&#038;ssl=1\" alt=\"Salesforce REST API without SessionId Using Curl\" width=\"989\" height=\"222\" srcset=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId-Using-Curl.png?w=989&amp;ssl=1 989w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId-Using-Curl.png?resize=300%2C67&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-REST-API-without-SessionId-Using-Curl.png?resize=624%2C140&amp;ssl=1 624w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><\/a><figcaption id=\"caption-attachment-4782\" class=\"wp-caption-text\">Salesforce REST API without SessionId Using Curl<\/figcaption><\/figure>\n<p><strong>Try to access Visualforce page using cURL<\/strong><\/p>\n<p>To access Visualforce page in Salesforce, first we need to login to Salesforce. Once logged in,\u00a0if we try to access Visualforce page even with valid session Id, we will not get proper output because of Salesforce security ,\u00a0it shows that it is checking for sfdc.app and navigator and tries to redirect to Login page. \u00a0It does not display expected output from Visualforce. It clearly seems that salesforce is using some sort of security to check valid request.<\/p>\n<figure id=\"attachment_4786\" aria-describedby=\"caption-attachment-4786\" style=\"width: 967px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-visualforce-security-check-using-cURL.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4786\" src=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-visualforce-security-check-using-cURL.png?resize=967%2C905&#038;ssl=1\" alt=\"Salesforce visualforce security check using cURL\" width=\"967\" height=\"905\" srcset=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-visualforce-security-check-using-cURL.png?w=967&amp;ssl=1 967w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-visualforce-security-check-using-cURL.png?resize=300%2C281&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Salesforce-visualforce-security-check-using-cURL.png?resize=624%2C584&amp;ssl=1 624w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/a><figcaption id=\"caption-attachment-4786\" class=\"wp-caption-text\">Salesforce visualforce security check using cURL<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>In same way, if we are logged in to curl previously and then try to access Visualforce using post method then salesforce tries to display form element with request forwarded from cURL. It does not display expected output from Visualforce. We can clearly see that how secure is salesforce and there is no way to break it.<\/p>\n<figure id=\"attachment_4783\" aria-describedby=\"caption-attachment-4783\" style=\"width: 989px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Access-Visualforce-page-using-cURL.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4783\" src=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Access-Visualforce-page-using-cURL.png?resize=989%2C449&#038;ssl=1\" alt=\"Access Visualforce page using cURL\" width=\"989\" height=\"449\" srcset=\"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Access-Visualforce-page-using-cURL.png?w=989&amp;ssl=1 989w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Access-Visualforce-page-using-cURL.png?resize=300%2C136&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/07\/Access-Visualforce-page-using-cURL.png?resize=624%2C283&amp;ssl=1 624w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><\/a><figcaption id=\"caption-attachment-4783\" class=\"wp-caption-text\">Access Visualforce page using cURL<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Workbench is one of widely used tool in Salesforce when it comes to exploring REST API of Salesforce. However\u00a0I wanted to export REST API response\u00a0in Binary format and therefore used cURL. cURL is open source command line library mostly used to test\u00a0http request. It can be downloaded from here\u00a0and official documentation about how to use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[328,260,170],"class_list":["post-4709","post","type-post","status-publish","format-standard","hentry","category-salesforce","tag-curl","tag-oauth","tag-rest-api"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":3951,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/creating-salesforce-query-builder-in-node-js-and-angularjs-using-salesforce-rest-api-and-oauth2\/","url_meta":{"origin":4709,"position":0},"title":"Creating Salesforce Query Builder in Node.js and AngularJs using Salesforce REST API and OAuth2 with Heroku Button","author":"Jitendra","date":"August 18, 2014","format":false,"excerpt":"In this post, we will be creating a\u00a0Salesforce Query (SOQL) Builder.\u00a0It uses Google's Angularjs MVC Javascript library and REST API provided by Salesforce. For Authentication, it uses OAuth2. Node.js is used as a primary language and hosted on Heroku. If you want to directly deploy to your Heroku Account, You\u2026","rel":"","context":"In &quot;HTML&quot;","block_context":{"text":"HTML","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/web\/"},"img":{"alt_text":"SOQL Builder Using Node.js AngularJs Salesforce REST API on Heroku","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/08\/SOQL-Builder-Using-Node.js-AngularJs-Salesforce-REST-API-on-Heroku-1024x504.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/08\/SOQL-Builder-Using-Node.js-AngularJs-Salesforce-REST-API-on-Heroku-1024x504.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/08\/SOQL-Builder-Using-Node.js-AngularJs-Salesforce-REST-API-on-Heroku-1024x504.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4769,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/event-monitoring-and-trailhead\/","url_meta":{"origin":4709,"position":1},"title":"Event Monitoring and Trailhead","author":"Jitendra","date":"August 25, 2015","format":false,"excerpt":"This is one of most awaited functionality provided by Salesforce platform recently. In many projects,\u00a0we were getting request from clients on different kind of \u00a0auditing reports like \"most used functionality by users, who is exporting reports, API call usage, link clicks\" etc. Event monitoring tool helps to provide many information\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Login by User - Event monitoring","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/08\/elf_num_logins_by_user.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/08\/elf_num_logins_by_user.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/08\/elf_num_logins_by_user.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/08\/elf_num_logins_by_user.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":6152,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/call-salesforce-rest-api-from-apex\/","url_meta":{"origin":4709,"position":2},"title":"Call Salesforce REST API from Apex","author":"Jitendra","date":"February 27, 2014","format":false,"excerpt":"Use Apex to call Salesforce REST API with sample source code","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3762,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-rest-api-playground\/","url_meta":{"origin":4709,"position":3},"title":"Salesforce REST API Playground","author":"Jitendra Zaa","date":"February 25, 2014","format":false,"excerpt":"What is REST API ? In my words, Getting data from Other System or Same System using HTTP request is known as REST API. If you know, how website works, you know REST API. Before REST API, there was SOAP request which needed lots of configuration and very tightly coupled.\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"REST API playground in Salesforce","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/02\/REST-API-playground-in-Salesforce-1024x362.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/02\/REST-API-playground-in-Salesforce-1024x362.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2014\/02\/REST-API-playground-in-Salesforce-1024x362.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2903,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-toolkit-for-php\/","url_meta":{"origin":4709,"position":4},"title":"Salesforce Toolkit for PHP","author":"Jitendra","date":"June 7, 2012","format":false,"excerpt":"Example of using PHP toolkit in Salesforce with Sample code","rel":"","context":"In &quot;Force.com&quot;","block_context":{"text":"Force.com","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/force-com\/"},"img":{"alt_text":"force.com toolkit for PHP toolkit","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4532,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-to-salesforce-integration-using-named-credentials-in-just-5-lines-of-code\/","url_meta":{"origin":4709,"position":5},"title":"Salesforce to Salesforce integration using Named Credentials in 5 lines","author":"Jitendra","date":"May 29, 2015","format":false,"excerpt":"I have already written article to integrate Salesforce with other Salesforce instance around 3 years back. In last 3 years, Salesforce has changed a lot. This time I will integrate Salesforce with other Salesforce only only in 5 lines of code, can you believe it \u00a0:) ? Check my old\u2026","rel":"","context":"In &quot;Salesforce&quot;","block_context":{"text":"Salesforce","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/"},"img":{"alt_text":"Authenticated Named Credential in Salesforce","src":"https:\/\/i0.wp.com\/www.jitendrazaa.com\/blog\/wp-content\/uploads\/2015\/05\/Authenticated-Named-Credential-in-Salesforce.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/4709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=4709"}],"version-history":[{"count":14,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/4709\/revisions"}],"predecessor-version":[{"id":4787,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/4709\/revisions\/4787"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=4709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=4709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=4709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}