I'm trying to beautify the reputation audit. If I want to show the post title for a reputation change event, however, I have a problem -- I don't know if the post ID is relative to a question or an answer.
By poking around with the API a bit, it seems that the only way to get a result in my case is:
- call
/answers/{id}
; - if I get a result it's an answer, thus I should call
/questions/{parent-id}/
for the title. - If I don't get a result, it's a question, thus I should call
/questions/{id}
for the title.
- if I get a result it's an answer, thus I should call
Is there a better way of doing this?