Niackz
                
              
                
              
                  
                  
              1
              
             
            
              i try to see users info, but i get 401 error
I thought that the problem was in the client_id, but my twitch bot was working without problems
{“error”:“Unauthorized”,“status”:401,“message”:“Must provide a valid Client-ID or OAuth token”}
https://api.twitch.tv/helix/users?login=shroud?client_id=XXX
             
            
              
              
              
            
            
           
          
            
              
                Dist
                
              
              
                  
                  
              2
              
             
            
              The problem is your querystring, change ?client_id=XXX to &client_id=XXX
A ? separates the base part of the URL form the query string, and each parameter in the query string needs to be separated by an &
             
            
              
              
              
            
            
           
          
            
            
              Helix requires client ID/authorization to be passed by headers, as far as I know.
             
            
              
              
              1 Like
            
            
           
          
            
              
                Dist
                
              
              
                  
                  
              4
              
             
            
              Ah, you’re right. I didn’t notice he was using Helix. So yeah, try sending the client id as the Client-ID header.
             
            
              
              
              
            
            
           
          
            
              
                Niackz
                
              
              
                  
                  
              5
              
             
            
            
              
              
              
            
            
           
          
            
              
                george
                
              
              
                  
                  
              6
              
             
            
              
You need to send it as a header, not a query string parameter.
             
            
              
              
              1 Like
            
            
           
          
            
              
                system
                
                  Closed 
              
              
                  
                  
              8
              
             
            
              This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.