  | 
              
	              
	                
  
    |   | 
   
  
    
        
        สอบถาม ASP.Net การแจ้งเตือนต่างๆ ผ่าน Line Notify ครับ พอมี ตย.ไหมครับ     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 จากโค้ดนี้ มันมี error ครับ ผมต้องแก้ไขยังไง รบกวนช่วยแนะนำหน่อยครับ  
Code (VB.NET) 
<%@ Page Language="VB" AutoEventWireup="True" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="System.Net" %>
<head>
<script language="VB" runat="server">
		
		Sub btnline1_Click(sender As Object, e As EventArgs)
			Dim request = DirectCast(WebRequest.Create("https://notify-api.line.me/api/notify"), HttpWebRequest)
			Dim postData = String.Format("message={0}", "ทดสอบ line notify asp.net")
			Dim data = Encoding.UTF8.GetBytes(postData)
			request.Method = "POST"
			request.ContentType = "application/x-www-form-urlencoded"
			request.ContentLength = data.Length
			request.Headers.Add("Authorization", "Bearer code token")
			Using stream = request.GetRequestStream()
				stream.Write(data, 0, data.Length)
			End Using
			Dim response = DirectCast(request.GetResponse(), HttpWebResponse)
			Dim responseString = New StreamReader(response.GetResponseStream()).ReadToEnd();
			
		End Sub 'btnline1_Click
   </script>
</head>     
<body>
   <form id="form1" runat="server">
		<asp:Button id="btnline1" onclick="btnline1_Click" runat="server" Text="Line"></asp:Button>
   </form>
</body>
</html>
 
 
                         
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2017-08-09 10:43:01 | 
                        By :
                            ton11079 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 กำหนด request.Headers.Add("Authorization", "Bearer code token") 
ให้ถูกต้องก็จะใช้งานได้ครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2017-08-15 16:34:27 | 
                        By :
                            tester | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 มีตัวอย่าง C# ที่อ่าน ค่าจาก Chat line มาเพื่อเอาข้อมูลขึ้นไปโชว์ไหมครับ 
 
รบกวนด้วยครับ ต้องการมากๆ ครับ ขอบคุณมาณที่นี้เลยครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-02-13 11:59:42 | 
                        By :
                            รัตนะ | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |