代码之家  ›  专栏  ›  技术社区  ›  skunkwerk

松弛API email\u域始终为空

  •  -1
  • skunkwerk  · 技术社区  · 7 年前

    我正在使用松弛API方法 team.info ,但对于我测试过的所有团队来说,它似乎总是空白的。如果不使用 users.list 查看个人电子邮件地址的方法?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Erik Kalkoken    7 年前

    team.info 方法:

     {
         "ok": true,
         "team": {
             "id": "T12345",
             "name": "My Team",
             "domain": "example",
             "email_domain": "example.com",
             "icon": {
                 "image_34": "https:\/\/...",
                 "image_44": "https:\/\/...",
                 "image_68": "https:\/\/...",
                 "image_88": "https:\/\/...",
                 "image_102": "https:\/\/...",
                 "image_132": "https:\/\/...",
                 "image_default": true
             },
            "enterprise_id": "E1234A12AB",
            "enterprise_name": "Umbrella Corporation"
         }
     }
    

    email_domain

    您的Slack团队的域名可以在 domain 所有物这从来都不是空的。本例中的完整域为 example.slack.com .