rsapi/auth.go
func (t *tokenAuthenticator) Sign(r *http.Request) error {
	r.Header.Set("Authorization", "Bearer "+t.token)
	if t.accountID != 0 {
		r.Header.Set("X-Account", strconv.Itoa(t.accountID))
	}
	return nil
}
func (t *tokenAuthenticator) Sign(r *http.Request) error {
	r.Header.Set("Authorization", "Bearer "+t.token)
	if t.accountID != 0 {
		r.Header.Set("X-Account", strconv.Itoa(t.accountID))
	}
	return nil
}
// Sign sets the OAuth authorization header