1
0
mirror of https://github.com/writeas/go-writeas.git synced 2025-07-27 19:18:35 +00:00
go-writeas/auth.go
Matt Baer 8a9ac652f2 Support updating posts
Plus change Post's ModifyToken to Token.
2016-09-04 20:33:38 -04:00

13 lines
169 B
Go

package writeas
import (
"net/http"
)
func (c *Client) isNotLoggedIn(code int) bool {
if c.token == "" {
return false
}
return code == http.StatusUnauthorized
}