How to Access and use Google api

Posted by Jayakumars under ASP.NET AJAX on 3/29/2013 | Points: 10 | Views : 883 | Status : [Member] [MVP] | Replies : 1
hi

How to Access and use Google api any one post sample source code or guide me.

Mark as Answer if its helpful to you


Responses

Posted by: Ankitsrist on: 3/30/2013 [Member] Starter | Points: 25

Up
0
Down
hello, i have used google custom search api in my app, you can use it by login through your mail account, it will automaticaly generate a unique key with some javascript code and you can simply copy paste it in your app...the code wolud something like
<%--<div><script type ="text/javascript">

(function() {
var cx = '004082:ctkapmi';
var gcse = document.createElement('script'); gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search>--%><%--</gcse:search></div>--%>


Jayakumars, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response