go fmt
This commit is contained in:
parent
653a8a0dc0
commit
d964a951a0
|
@ -116,8 +116,6 @@ func (c *Client) Auth(username, password, twoFactorCode string, info *AuthInfo)
|
|||
}
|
||||
}
|
||||
|
||||
log.Printf("%#v\n", info)
|
||||
|
||||
proofs, err := srp([]byte(password), info)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strconv"
|
||||
)
|
||||
|
||||
const Version = 2
|
||||
const Version = 3
|
||||
|
||||
const headerAPIVersion = "X-Pm-Apiversion"
|
||||
|
||||
|
@ -39,11 +39,13 @@ func (err apiError) Error() string {
|
|||
|
||||
// Client is a ProtonMail API client.
|
||||
type Client struct {
|
||||
HTTPClient *http.Client
|
||||
RootURL string
|
||||
AppVersion string
|
||||
|
||||
ClientID string
|
||||
ClientSecret string
|
||||
|
||||
HTTPClient *http.Client
|
||||
}
|
||||
|
||||
func (c *Client) newRequest(method, path string, body io.Reader) (*http.Request, error) {
|
||||
|
|
Loading…
Reference in New Issue