<a href="https://console.cloud.google.com/apis/credentials">Get Your Api Credentials Here</a> <a href="https://calendar.google.com/calendar">Get your Calender ID</a> <?php include_once("wp-load.php"); function get_calender_events() { $params = array(); /*Get current date*/ $current_date = date('Y-m-d H:i:s'); /*Convert it to google calendar's rfc_format */ $rfc_format = date("c", strtotime($current_date)); $params[] = 'orderBy=startTime'; $params[] ='maxResults=100'; $params[] = 'timeMin='.urlencode($rfc_format); $url_param = ''; foreach($params as $param) { $url_param.= '&'.$param; } $calender_id = "calender_id"; $client_key = "client_key"; $url = "https://www.googleapis.com/calendar/v3/calendars/".$calender_id."/events?key=".$client_key."&singleEvents=true".$url_param; $list_events = wp_remote_post($url, ...
jQuery PHP Ajax Autosuggest Search.html <input type="text" class="searchfield search_keyword" placeholder="Search For Stocks" id="search_keyword_id"> <div id="result"></div> <script type="text/javascript" src="//code.jquery.com/jquery-1.8.0.min.js"></script> <script type="text/javascript"> function set_item(x,y,z) { var c = x+" "+ y; $('#search_keyword_id').val(c); $('#stockcode').val(x); $('#exchangeId').val(z); } $(function(){ $(".search_keyword").keyup(function() { var search_keyword_value = $(this).val(); var dataString = 'search_keyword='+ search_keyword_value; if(search_keyword_value!='') { $.ajax({ type: "POST", ...