title: Compiler Error Message: BC30002: Type 'RestClient' is not defined
body: <p>I am trying to integrate a bulk SMS API. After following their sample code, I am getting <code>Compiler Error Message: BC30002: Type 'RestClient' is not defined.</code></p>
  
  <p>The code is as below</p>
  
  <pre><code>&lt;%@ Page Language="VB" Debug = "true" ContentType="text/html"       ResponseEncoding="iso-8859-1" %&gt;
  &lt;%@ Import Namespace="System.Data.SqlClient"%&gt;
  &lt;%@ Import Namespace="System.net.mail"%&gt;
  &lt;%@ Import Namespace="System.Data"%&gt;
  &lt;%@ Import Namespace="System" %&gt;
  &lt;%@ Import Namespace="System.Net" %&gt;
  &lt;%@ Import Namespace="System.Net.http" %&gt;
  &lt;%@ Import Namespace="System.text" %&gt;
  &lt;%@ Import Namespace="System.IO" %&gt;
  &lt;%@ Import Namespace="microsoft.http" %&gt;
  &lt;%@ Import namespace="System.Web.Script.Serialization" %&gt;
  &lt;%@ Import Namespace="System.IO" %&gt;
  &lt;%@ Import Namespace="Restclient" %&gt;
  
  &lt;SCRIPT language="vb" runat="server"&gt;
  
  
  Sub Page_load(S as Object,E as EventArgs)
  
  
  Dim client = New RestClient("https://api.infobip.com/sms/1/text/single")
  
  ' Dim byt As Byte() = System.Text.Encoding.UTF8.GetBytes(strOriginal)  
  '
  '    ' convert the byte array to a Base64 string
  '
  '    strModified = Convert.ToBase64String(byt)
  
  Dim request = New RestRequest(Method.POST)
  request.AddHeader("accept", "application/json")
  request.AddHeader("content-type", "application/json")
  request.AddHeader("authorization", "Basic   ctrtre2hvbGFkcm0xOmNoYW5nZW1lMUE=")'base64 of usename and password
  request.AddParameter("application/json", "{""from"":""SMS"", ""to"":[  ""4356653443"",""2348056355307""],""text"":""Test SMS.""}", ParameterType.RequestBody)
  
  Dim response As IRestResponse = client.Execute(request)
  response.Write(response)
  
  
  
  
  end sub
  &lt;/SCRIPT&gt;
  </code></pre>
  
  <p>Please help me.</p>