Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestToken 수정 #5

Open
dc7303 opened this issue Sep 25, 2020 · 0 comments
Open

RequestToken 수정 #5

dc7303 opened this issue Sep 25, 2020 · 0 comments

Comments

@dc7303
Copy link
Contributor

dc7303 commented Sep 25, 2020

easycodefgo/easycodefgo.go

Lines 152 to 165 in 421db7f

func (self *Codef) RequestToken(serviceType ServiceType) (map[string]interface{}, error) {
existClientInfo := self.checkClientInfo(serviceType)
if !existClientInfo {
return nil, errors.New("The ClientID and ClientSecret values ​​are empty. Please set the value according to the service type.")
}
switch serviceType {
case TypeProduct:
return requestToken(self.clientID, self.clientSecret)
case TypeDemo:
return requestToken(self.demoClientID, self.demoClientSecret)
default:
return requestToken(SandboxClientID, SandboxClientSecret)
}
}

현재 리턴 타입으로 map이 선언되어 있다.
다른 요청과 일관성을 위해 string 타입으로 교체가 필요하다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant