Posts

Showing posts from September, 2014

Import Gmail Contacts using Javascript

Import Gmail Contacts using Javascript More Information visit: https://developers.google.com/google-apps/contacts/v3/ <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script type="text/javascript"> var clientId = '**32959*****-vg5vrmb58urppmg5lv40hp8p2kn7bhl6.apps.googleusercontent.com'; var apiKey = '*******qijwlBuWfkjgF15MQ67fqRzC7*******'; var scopes = 'https://www.google.com/m8/feeds'; var emailList; $(document).on("click",".js-google_contacts", function(){    gapi.client.setApiKey(apiKey);    window.setTimeout(checkAuth,3); }); function checkAuth() {      gapi.auth.authorize({client_id: clientId, scope: scopes, immediate: false}, handleAuthResult); } function handleAuthResult(authResult) {   if (authResult && !authResult.error) {     $.get("https://www.google.com/m8/feeds/contacts/default/full?alt=json&access_token=" + authResult.acc...

Login With Google Plus Using Javascript

Login With Google Plus Using Javascript More information visit: https://developers.google.com/+/web/api/javascript <!-- Place this asynchronous JavaScript just before your </body> tag --- Google SignIn--> <script type="text/javascript">     (function() {            var po = document.createElement('script'); po.type = 'text/javascript';            po.async = true;            po.src = 'https://apis.google.com/js/client.js?onload=onLoadCallback';            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);          })(); </script> <script type="text/javascript"> $(document).ready(function(e) {            var po = doc...

Login with Linkedin Using Javascript

Login with Linkedin Using Javascript For more information visit: http://developers.linkedin.com/documents/getting-started-javascript-api <!--Script for LinkedIn Login add in head --> <script type="text/javascript" src="https://platform.linkedin.com/in.js">       api_key: 75dtnfjj******       authorize: true       lang:  en_US </script> <script type="text/javascript"> // JavaScript Document function signupLinkedIn() {     IN.User.authorize(onLinkedInAuth);     if(IN.User.isAuthorized())     {         //DO STUFF         //console.log('welcome');     }     return false; }; function onLinkedInAuth() {    // we pass field selectors as a single parameter (array of strings)    IN.API.Profile("me")     .fields(["...

Login with Facebook Using Javascript

Login with Facebook using Javascript. For more information visit : https://developers.facebook.com/products/login/ <script> window.fbAsyncInit = function() {   FB.init({     appId      : '*************427',     cookie     : true,  // enable cookies to allow the server to access                         // the session     xfbml      : true,  // parse social plugins on this page     version    : 'v2.0' // use version 2.0   }); }; // Load the SDK asynchronously (function(d, s, id) {     var js, fjs = d.getElementsByTagName(s)[0];     if (d.getElementById(id)) return;     js = d.createElement(s); js.id = id;     js.src = "//connect...

Google Autocomplete API Search Places and Directions

Image
Find direction and places using google map api using with bootstrap tab. Load map in bootstrap tab. DEMO