
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rest API Archives - AwsQuality Technologies | Salesforce ISVPartner | AppExchange Partner</title>
	<atom:link href="https://www.awsquality.com/tag/rest-api/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.awsquality.com/tag/rest-api/</link>
	<description>Salesforce ISVPartner &#124; AppExchange Partner</description>
	<lastBuildDate>Mon, 16 Feb 2026 12:41:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Step by Step guidance of Salesforce Youtube Integration</title>
		<link>https://www.awsquality.com/salesforce-youtube-integration/</link>
		
		<dc:creator><![CDATA[AwsQuality]]></dc:creator>
		<pubDate>Mon, 27 Jan 2020 09:13:52 +0000</pubDate>
				<category><![CDATA[Salesforce Integration]]></category>
		<category><![CDATA[Importance of Salesforce Youtube Integration]]></category>
		<category><![CDATA[Rest API]]></category>
		<category><![CDATA[rest api integration in salesforce]]></category>
		<category><![CDATA[Salesforce and YouTube Integration]]></category>
		<category><![CDATA[Social Media Platform]]></category>
		<guid isPermaLink="false">https://www.awsquality.com?p=4406</guid>

					<description><![CDATA[<p>Salesforce and YouTube both are very popular and powerful tools and their integration provides lots of benefits to the organizations. This integration allows users to maintain the number of views, likes, dislikes and comments for their favorite videos. Why it is needed to integrate Salesforce and Youtube? Track of useful...</p>
<p>The post <a href="https://www.awsquality.com/salesforce-youtube-integration/">Step by Step guidance of Salesforce Youtube Integration</a> appeared first on <a href="https://www.awsquality.com">AwsQuality Technologies | Salesforce ISVPartner | AppExchange Partner</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Salesforce and YouTube both are very popular and powerful tools and their integration provides lots of benefits to the organizations.<br />
This integration allows users to maintain the number of views, likes, dislikes and comments for their favorite videos.</p>
<h2>Why it is needed to integrate Salesforce and Youtube?</h2>
<p>Track of useful statistics like ( number of likes and dislikes, number of views, number of comments) regarding your relevant YouTube videos is very much needed due to the evolving of Social Media Platform at one place, therefore nowadays organizations are adopting integration of two different tools to optimize their business flow.</p>
<p><em><strong>Also check:</strong> <a href="https://www.awsquality.com/how-to-integrate-salesforce-and-mailchimp-successfully/">How to Integrate Salesforce and Mailchimp Successfully?</a></em></p>
<p><span style="font-size: large;"><b>Here is a list of useful steps to integrate Salesforce and Youtube using Salesforce REST API??</b></span></p>
<ol>
<li><strong>Creation of Objects and fields in Salesforce.</strong>
<ul class="handIconULCss">
<li>Create an object named ?YouTube Video Details? and subsequently create the tab for this custom object.</li>
<li>Inside this object, create fields named ?Number of View Counts, Number of Likes, Number of Dislikes, Number of Comments, Video Id? of text type.</li>
</ul>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4414" src="https://www.awsquality.com/wp-content/uploads/2020/01/Object.png" alt="Salesforce Youtube Integration" width="1172" height="355" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Object.png 1172w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-300x91.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-768x233.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-1024x310.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-250x76.png 250w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-1170x355.png 1170w" sizes="(max-width: 1172px) 100vw, 1172px" /></p>
<p>&nbsp;</li>
<li>Formation of App.
<ul class="handIconULCss">
<li>Create an app named ?YouTube Video Details?.</li>
<li>Add custom tab and object that you have created (in step 1) inside this app.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4420" src="https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields.png" alt="Youtube Salesforce Integration" width="1175" height="503" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields.png 1175w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields-300x128.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields-768x329.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields-1024x438.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Object-fields-250x107.png 250w" sizes="(max-width: 1175px) 100vw, 1175px" /></p>
<p>&nbsp;</li>
<li>The setting of Page Layout.
<ul class="handIconULCss">
<li>Put all the fields that you have created inside the object ?YouTube Video Details? on the page layout section.</li>
<li>Now Click on save.</li>
</ul>
</li>
<li>&nbsp;</li>
<li>Getting of API Key.<br />
<img decoding="async" class="alignnone size-full wp-image-4422" src="https://www.awsquality.com/wp-content/uploads/2020/01/API_Google.png" alt="API_Google" width="1423" height="357" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/API_Google.png 1423w, https://www.awsquality.com/wp-content/uploads/2020/01/API_Google-300x75.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/API_Google-768x193.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/API_Google-1024x257.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/API_Google-250x63.png 250w" sizes="(max-width: 1423px) 100vw, 1423px" /></p>
<ul class="handIconULCss">
<li>Click on the URL https://console.developers.google.com in order to generate API Key and EndPoint.</li>
<li>Now Click on create the project and save it.</li>
<li>After that Click on Credentials present on the left-hand side menu.</li>
<li>Click on the Create credentials button. Select API KeY, it will be generated.</li>
<li>One pop-up message comes, select close.</li>
<li>You can also rename the API Key name, not value.</li>
<li>Click on Dashboard present on the left panel and Enable API and Services.</li>
<li>The library of different API will come into the screen.</li>
<li>Click on YouTube Data API v3.</li>
<li>Now click on the Try This API button, after enabling this API.</li>
<li>Click on Videos present on the left panel you find the list in that videos section.</li>
<li>Put statistics in part section and in id part place id of any youtube video.</li>
<li>Click on the Execute button, now the statistics can be seen.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4425" src="https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse.png" alt="YoutubeResponse" width="1148" height="631" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse.png 1148w, https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse-300x165.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse-768x422.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse-1024x563.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse-946x520.png 946w, https://www.awsquality.com/wp-content/uploads/2020/01/YoutubeResponse-207x114.png 207w" sizes="(max-width: 1148px) 100vw, 1148px" /></p>
<p>&nbsp;</li>
<li>Creation of Custom Settings
<ul class="handIconULCss">
<li>Create a custom setting named ? YouTube API Setting?.</li>
<li>Inside this custom, the setting creates one field named ?Value?.</li>
</ul>
</li>
<li><img decoding="async" class="alignnone size-full wp-image-4426" src="https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1.png" alt="Custom Settings 1" width="1164" height="444" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1.png 1164w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1-300x114.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1-768x293.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1-1024x391.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-Settings-1-250x95.png 250w" sizes="(max-width: 1164px) 100vw, 1164px" />
<ul class="handIconULCss">
<li>Click on the Manage button of that custom settings.</li>
<li>Click on New button.</li>
<li>Here create two fields named ?YouTube API Key? and ?YouTube Endpoints?.</li>
<li>For YouTube API Key, put the API Key that you have created above in the value field and click on save.</li>
<li>For the YouTube Endpoints field, in value field put the value ?https://www.googleapis.com/youtube/v3/videos?part=statistics%20&amp;id={VIDEO_ID}&amp;key={API_KEY}? and click on save.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4427" src="https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2.png" alt="Custom settings 2" width="1163" height="391" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2.png 1163w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2-300x101.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2-768x258.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2-1024x344.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Custom-settings-2-250x84.png 250w" sizes="(max-width: 1163px) 100vw, 1163px" /></p>
<p>&nbsp;</li>
<li>Creation of Remote Site Settings
<ul class="handIconULCss">
<li>Search for remote site settings in the quick find box and click on new.</li>
<li>In remote site name field put the value as ?You_Tube_API_Setting?.</li>
<li>In the remote site, URL field puts the value as ?https://www.googleapis.com?.</li>
<li>Click on the Save button.</li>
</ul>
<p><img decoding="async" class="alignnone size-full wp-image-4429" src="https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings.png" alt="Remote_Site_Settings" width="1167" height="392" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings.png 1167w, https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings-300x101.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings-768x258.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings-1024x344.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Remote_Site_Settings-250x84.png 250w" sizes="(max-width: 1167px) 100vw, 1167px" /></p>
<p>&nbsp;</li>
<li>Creation of Custom Button and Apex Class
<ul class="handIconULCss">
<li>Click on the custom object that you have created just now.</li>
<li>Create a custom button named ?Get Details?.</li>
<li>Use the javascript code for that button.
<pre style="color: #d1d1d1; background: #000000;">{!REQUIRESCRIPT( ?/soap/ajax/<span style="color: #00a800;">35.0</span>/connection<span style="color: #00a800;">.</span>js? )}
{!REQUIRESCRIPT( ?/soap/ajax/<span style="color: #00a800;">35.0</span>/apex<span style="color: #00a800;">.</span>js? )}
var obj = {
?videoId? :?{!Youtube_Video_Detail__c<span style="color: #00a800;">.</span>Video_Id__c}? ,
?recId? :?{!Youtube_Video_Detail__c<span style="color: #00a800;">.</span>Id }?
};
sforce<span style="color: #00a800;">.</span>apex<span style="color: #00a800;">.</span>execute( ?YouTubeVideoDetails?, ?details?, obj);
location<span style="color: #00a800;">.</span>reload();
</pre>
</li>
<li>Create the Apex class with the name ?YouTubeVideoDetails ?.<br />
Use the following Apex class&#8230;</p>
<pre style="color: #d1d1d1; background: #000000;">/*
 * This class runs the methods
 * that calls the YouTube API 
 * to get the details (likes,dislikes,comments,views) of
 * particular video that user want to see the video statistics 
 *
 */
global class YouTubeVideoDetails {
         /**
         * This method Fetching the Encoded key and 
         * Endpoints by using the 
         * Custom Settings 
         */
    webService static void details( String videoId , String recId) {        
        String enckey = You_Tube_API_Setting__c<span style="color: #00a800;">.</span>getInstance( 'YouTube API Key' ).Value__c;
        String endpt  = You_Tube_API_Setting__c<span style="color: #00a800;">.</span>getInstance( 'YouTube Endpoints' ).Value__c;
        endpt         = endpt<span style="color: #00a800;">.</span>replace( '{API_KEY}', enckey );
        endpt         = endpt<span style="color: #00a800;">.</span>replace( '{VIDEO_ID}', videoId );
                
        HttpRequest httpReq  = new HttpRequest();
        Http http            = new Http();
        HttpResponse httpRes = new HttPResponse();        
        httpReq<span style="color: #00a800;">.</span>setMethod( 'GET' );
        httpReq<span style="color: #00a800;">.</span>setEndpoint( endpt );        
        httpRes = http<span style="color: #00a800;">.</span>send( httpReq );        
        JsonParser j = (JsonParser)JSON<span style="color: #00a800;">.</span>deserialize(httpRes<span style="color: #00a800;">.</span>getBody(),JsonParser<span style="color: #00a800;">.</span>class);       
        Youtube_Video_Detail__c yv         = new Youtube_Video_Detail__c();
        yv<span style="color: #00a800;">.</span>Id                       = recId;
        yv<span style="color: #00a800;">.</span>Number_of_View_Counts__c = j<span style="color: #00a800;">.</span>items[<span style="color: #00a800;">0</span>].statistics<span style="color: #00a800;">.</span>viewCount;//counts;
        yv<span style="color: #00a800;">.</span>Number_of_Likes__c       = j<span style="color: #00a800;">.</span>items[<span style="color: #00a800;">0</span>].statistics<span style="color: #00a800;">.</span>likeCount;
        yv<span style="color: #00a800;">.</span>Number_of_Dislikes__c    = j<span style="color: #00a800;">.</span>items[<span style="color: #00a800;">0</span>].statistics<span style="color: #00a800;">.</span>dislikeCount;
        yv<span style="color: #00a800;">.</span>Number_of_Comments__c    = j<span style="color: #00a800;">.</span>items[<span style="color: #00a800;">0</span>].statistics<span style="color: #00a800;">.</span>commentCount;        
        update yv;
    }
    public class JsonParser{
        public pageInfo pageInfo{get;set;}
        public String etag{get;set;}
        public list<span style="color: #ff8906;">&lt;</span><span style="color: #f6c1d0;">items</span><span style="color: #ff8906;">&gt;</span> items{get;set;}
        public String kind{get;set;}
    }
    public class statistics{
        public String viewCount{get;set;}
        public String likeCount{get;set;}
        public String dislikeCount{get;set;}
        public String favoriteCount{get;set;}
        public String commentCount{get;set;}
    }
    public class pageInfo{
        public Integer resultsPerPage{get;set;}
        public Integer totalResults{get;set;}
    }
    public class items{
        public String id{get;set;}
        public String etag{get;set;}
        public statistics statistics{get;set;}
        public String kind{get;set;}
    }
}
</pre>
</li>
</ul>
</li>
</ol>
<p><img decoding="async" class="alignnone size-full wp-image-4430" src="https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details.png" alt="Salesforce_and_YouTube__Integration_Details" width="1418" height="389" srcset="https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details.png 1418w, https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details-300x82.png 300w, https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details-768x211.png 768w, https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details-1024x281.png 1024w, https://www.awsquality.com/wp-content/uploads/2020/01/Salesforce_and_YouTube__Integration_Details-250x69.png 250w" sizes="(max-width: 1418px) 100vw, 1418px" /></p>
<p><strong>Conclusion</strong><br />
Integration of Salesforce and Youtube helps sales reps to maintain all relevant statistics of YouTube videos like the number of likes and dislikes, number of views, and number of comments in one integrated system that is Salesforce CRM which further helps them to track all the relevant information.</p>
<p><em>Any query about this topic, We have a full staff of <a href="https://www.awsquality.com/services/salesforce-consulting/">Salesforce Integration Consultants</a> that can help you. Just drop us a <a href="https://www.awsquality.com/contact-us/">message</a> and let?s get free quotes.</em></p>
<p>If you are looking for the best <a href="https://www.awsquality.com/services/salesforce-development/">Salesforce Development Services</a>, then you should visit our website.</p>
<p>The post <a href="https://www.awsquality.com/salesforce-youtube-integration/">Step by Step guidance of Salesforce Youtube Integration</a> appeared first on <a href="https://www.awsquality.com">AwsQuality Technologies | Salesforce ISVPartner | AppExchange Partner</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
