Invalid Ticket Id

Invalid Ticket Id

Hi, 

I'm a new Zoho developer trying to call the CRM API.  I've followed your example by getting leads 
but I got "Invalid Ticket Id" exception.

Satır içi resim 2

I have followed these steps Firstly, copy authtoken from active token pages like this:
Satır içi resim 1

Code:

public static void Main(string[] args)
        {
            string result = APIMethod("Leads", "getRecords", string.Empty);//Change the id,method name, and module name here
            Console.Write(result);

            Console.Read();
        }
        public static String APIMethod(string modulename, string methodname, string recordId)
        {
            string uri = zohocrmurl + modulename + "/" + methodname + "?";
            /* Append your parameters here */
            string postContent = "scope=creatorapi";
            postContent = postContent + "&authtoken=129b01997047bebe6ff536826ab855d5";//Give your authtoken
            if (methodname.Equals("insertRecords") || methodname.Equals("updateRecords"))
            {
                postContent = postContent + "&xmlData=" + HttpUtility.UrlEncode("Your  CompanyHannahSmithtesting@testing.com");
            }
            if (methodname.Equals("updateRecords") || methodname.Equals("deleteRecords") || methodname.Equals("getRecordById"))
            {
                postContent = postContent + "&id=" + recordId;
            }
            string result = AccessCRM(uri, postContent);
            return result;
        }
        public static string AccessCRM(string url, string postcontent)
        {
            WebRequest request = WebRequest.Create(url);
            request.Method = "POST";
            byte[] byteArray = Encoding.UTF8.GetBytes(postcontent);
            request.ContentType = "application/x-www-form-urlencoded";
            request.ContentLength = byteArray.Length;
            Stream dataStream = request.GetRequestStream();
            dataStream.Write(byteArray, 0, byteArray.Length);
            dataStream.Close();
            WebResponse response = request.GetResponse();
            dataStream = response.GetResponseStream();
            StreamReader reader = new StreamReader(dataStream);
            string responseFromServer = reader.ReadToEnd();
            reader.Close();
            dataStream.Close();
            response.Close();
            return responseFromServer;
        }

Thanks