문제

We make requests to the Asana API for user photo opt_field. We constructed the asana users query like this:

https://app.asana.com/api/1.0/users\?opt_fields\=name,email,photo,workspaces

The reponse returned is

    data =     (
            {
        email = "user2@gmail.com";
        id = xxooiio1664;
        name = "User 2";
        workspaces =             (
                            {
                id = 104764788xxxyyy;
            },
                            {
                id = 4983461zzzjjjj;
            }
        );
    },

But the photo field has been missing. Did we miss anything in the request?

도움이 되었습니까?

해결책

When you use opt_fields, it only returns fields you explicitly request, and each of the images is considered its own field for this purpose. So you would need to specify e.g. opt_fields=photo.image_60x60.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top