How do I get follower names instead of IDs?
문제
I assumed that this would provide me with the list of follower names instead of just the IDs:
https://app.asana.com/api/1.0/projects?opt_fields=name,followers&opt_expand=followers
Am I using opt_expand incorrectly?
해결책
(I work at Asana)
The interplay between opt_fields
and opt_expand
may be confusing, as opt_fields
currently takes precedence.
The key name
in the opt_fields
list it will pertain to the projects, not the followers.
Try passing just opt_fields=followers,followers.name
.
제휴하지 않습니다 StackOverflow