Skip to content

RequestToken 수정 #5

Description

@dc7303

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 타입으로 교체가 필요하다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions