Yammer:获取带有消息的用户名

时间:2015-06-01 11:08:00

标签: yammer

我想知道如何使用API​​从消息中获取用户名等。调用GET消息API为我提供了消息所需的所有信息,但我只获得了userID。由于API请求限制,我无法承担另外的API请求以了解每条消息所需的所有userinfo。

我错过了什么,或者这根本不可能?

2 个答案:

答案 0 :(得分:1)

事实上,请查看回复的“参考”部分,您将找到有关您用户的全部详细信息。

答案 1 :(得分:0)

我不知道那是哪里?这是我对yammer的API响应(对于一条消息)

阵 (     [0] => stdClass对象         (             [id] => 544689850             [sender_id] => 1507082247             [replied_to_id] => 544673530             [created_at] => 2015/06/04 13:03:09 +0000             [network_id] => 355014             [message_type] =>更新             [sender_type] =>用户             [url] => https://www.yammer.com/api/v1/messages/544689850             [web_url] => https://www.yammer.com/b-rail.be/messages/544689850             [group_id] => 5741341             [body] => stdClass对象                 (                     [parsed] =>签名并批准!                     [plain] =>签名并批准!                     [rich] =>签名并批准!                 )

        [thread_id] => 544673530
        [client_type] => Web
        [client_url] => https://www.yammer.com/
        [system_message] => 
        [direct_message] => 
        [chat_client_sequence] => 
        [language] => en
        [notified_user_ids] => Array
            (
            )

        [privacy] => private
        [attachments] => Array
            (
            )

        [liked_by] => stdClass Object
            (
                [count] => 0
                [names] => Array
                    (
                    )

            )

        [content_excerpt] => Signed and Approved!
        [group_created_id] => 5741341
    )