Compare commits
	
		
			2 Commits
		
	
	
		
			de4a4a8643
			...
			888f29383e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						888f29383e
	
				 | 
					
					
						|||
| 
						
						
							
						
						0427121975
	
				 | 
					
					
						
@@ -10,6 +10,8 @@ import (
 | 
			
		||||
	"net/http"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const UserAgent = "go-lifx"
 | 
			
		||||
 | 
			
		||||
type (
 | 
			
		||||
	Client struct {
 | 
			
		||||
		accessToken string
 | 
			
		||||
@@ -56,6 +58,8 @@ func (c *Client) NewRequest(method, url string, body io.Reader) (req *http.Reque
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	req.Header.Add("Authorization", fmt.Sprintf("Bearer %s", c.accessToken))
 | 
			
		||||
	req.Header.Add("Content-Type", "application/json")
 | 
			
		||||
	req.Header.Add("User-Agent", UserAgent)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user