Showing posts with label API. Show all posts
Showing posts with label API. Show all posts

Thursday, 21 November 2013

HOw To Call URL API for SMS sending using function in C#.NET

Copy & Paste this code and call this function anywhere you use to use API:


 public void SendSMS()
        {
            //HTTP connection
            HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("your url API");
            //Get response from Ozeki NG SMS Gateway Server and read the answer
            HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse();
            System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream());
            string responseString = respStreamReader.ReadToEnd();
            respStreamReader.Close();
            myResp.Close();

        }

Saturday, 26 October 2013

Add Facebook Like and Share Button API to Website

Copy & Paste this code for Facebook like button with count:

<div id="fb-root"></div>
<script type="text/javascript">(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.facebook.net/en_US/all.js#xfbml=1";
   fjs.parentNode.insertBefore(js, fjs);
}
(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="http://brijeshsolutions.blogspot.com" data-send="false" data-layout="button_count" data-width="200" data-show-faces="false"></div>



Copy & Paste this code for Facebook Share button with count:

<div style='float:center;padding:0px 0px 0px 25px'>
<a share_url='http://brijeshsolutions.blogspot.com' href='http://www.facebook.com/sharer.php'  name='fb_share' type='button_count' target="_blank">Share Brijesh Solutions< /a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script>

</div>