-
Notifications
You must be signed in to change notification settings - Fork 0
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
[HOTFIX] API Credential failed 문제로 다른 API로 변경 #104
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
빠른 HOTFIX 감사합니다!
@@ -80,6 +77,7 @@ extension HorizonsAPIManager { | |||
// Get time now and 1 minute later | |||
|
|||
let formatter = DateFormatter() | |||
formatter.timeZone = TimeZone(identifier: "Europe/London") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타임존때문에 값이 낮인 것처럼 나왔던거군요!
받아오는 값이 정확히 일치합니다. 정말 고생하셨어요 제리!!!
확인 마쳤습니다! 현재 미국 Providence, Rhode Island에서도 작동 잘하고 있습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
너무너무너무 고생많으셨습니다! 감사합니다👍👍👍
그리고 그냥 개인적으로 코드 보면서 궁금한 부분 살짝 코멘트 남겨서.. 혹~시 시간나시면 깔짝이라도 대답해주시면 감사하겠습니다 ㅎㅎ🙇♂️🙇♂️🙇♂️
@@ -41,3 +42,64 @@ extension AstronomyAPIManager { | |||
return parameters | |||
} | |||
} | |||
|
|||
// MARK: - Horizons API | |||
class HorizonsAPIManager: NetworkService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
궁금해서 그런건데, 현재 이 horizons API에 대한 코드는 그럼 아예 새로 이 API에 대해서 작성을 새로 하신건가요..?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
기존에 있던 걸 참고해서 따로 만들었습니다!
var command: String { | ||
switch self { | ||
case .sun: | ||
return "10" | ||
case .moon: | ||
return "301" | ||
case .mercury: | ||
return "199" | ||
case .venus: | ||
return "299" | ||
case .mars: | ||
return "499" | ||
case .jupiter: | ||
return "599" | ||
case .saturn: | ||
return "699" | ||
case .uranus: | ||
return "799" | ||
case .neptune: | ||
return "899" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
바쁘실텐데 죄송합니다. 궁금해서 그런건데, 혹시 이 숫자들의 의미는 어디에서 오는건가요..? API에서 각 행성들에 대한 숫자인건가요? ㅎㅎ,,,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 이건 설명을 못 썼네요.. 임시로 바꾼 API에서는 원하는 천체를 파라미터로 보내서 값을 요청하는데 그때 쓰는 숫자들입니다 API에서 각 행성들에 대한 숫자가 맞아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
제리 최고 , , 👩🚀🚀
API 관련 코드 작성하시느라 수고 많으셨어요..! 👏
관련 이슈
🔒 Closes
#103
작업내용
추후 진행할 사항
리뷰포인트
Reference
NASA Open APIs
Horizons API
Horizons System Manual
Checklist