{
  "opencollection": "1.0.0",
  "info": {
    "name": "Viva Engage (Yammer) Legacy REST Files Messages API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.yammer.com/dialog/oauth",
      "accessTokenUrl": "https://www.yammer.com/oauth2/access_token.json",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Messages",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get current user's feed messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/my_feed.json"
          },
          "docs": "Get current user's feed messages"
        },
        {
          "info": {
            "name": "Get algorithmically sorted messages",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/algo.json"
          },
          "docs": "Get algorithmically sorted messages"
        },
        {
          "info": {
            "name": "Get messages from followed users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/following.json"
          },
          "docs": "Get messages from followed users"
        },
        {
          "info": {
            "name": "Get messages from user's network feed",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages.json"
          },
          "docs": "Get messages from user's network feed"
        },
        {
          "info": {
            "name": "Post a new message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.yammer.com/api/v1/messages.json",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "body",
                  "value": ""
                },
                {
                  "name": "group_id",
                  "value": ""
                },
                {
                  "name": "replied_to_id",
                  "value": ""
                },
                {
                  "name": "direct_to_id",
                  "value": ""
                },
                {
                  "name": "topic1",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Post a new message"
        },
        {
          "info": {
            "name": "Get messages sent by the current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/sent.json"
          },
          "docs": "Get messages sent by the current user"
        },
        {
          "info": {
            "name": "Get private messages received by current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/private.json"
          },
          "docs": "Get private messages received by current user"
        },
        {
          "info": {
            "name": "Get messages received by current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/received.json"
          },
          "docs": "Get messages received by current user"
        },
        {
          "info": {
            "name": "Get messages in a thread",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/in_thread/:thread_id.json",
            "params": [
              {
                "name": "thread_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get messages in a thread"
        },
        {
          "info": {
            "name": "Get messages in a group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/in_group/:group_id.json",
            "params": [
              {
                "name": "group_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get messages in a group"
        },
        {
          "info": {
            "name": "Get messages about a topic",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.yammer.com/api/v1/messages/about_topic/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get messages about a topic"
        },
        {
          "info": {
            "name": "Like a message",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://www.yammer.com/api/v1/messages/liked_by/current.json",
            "params": [
              {
                "name": "message_id",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Like a message"
        },
        {
          "info": {
            "name": "Unlike a message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.yammer.com/api/v1/messages/liked_by/current.json",
            "params": [
              {
                "name": "message_id",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Unlike a message"
        },
        {
          "info": {
            "name": "Delete a message",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://www.yammer.com/api/v1/messages/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a message"
        }
      ]
    }
  ],
  "bundled": true
}