Skip to content

Instantly share code, notes, and snippets.

@eduardopoleo
Last active May 5, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eduardopoleo/fbd2cb13d56acbee9ac6680a9fdc558a to your computer and use it in GitHub Desktop.
Save eduardopoleo/fbd2cb13d56acbee9ac6680a9fdc558a to your computer and use it in GitHub Desktop.

Create Topic, Reply Topic, Comment on Reply, Mention someone

  {
    "type": "cause",
    "attributes": {
      "userName": "Hello greg",
      "actionText": "posted a topic",
      "timeStamp": "2016-05-05T13:39:17Z"
    }
  },
  {
    "type": "title",
    "attributes": {
      "text": "I'm creating a topic for shane"
    }
  },
  {
    "type": "profile",
    "attributes": {
      "profileUrl": "https://s3.amazonaws.com/influitiveimagesdevelopment/app/contacts/thumb/1.png?1459780327",
      "name": "Hello greg",
      "title": "VP of Sales"
    }
  },
  {
    "type": "expandible-text",
    "attributes": {
      "text": "I'm creating a topic for shane"
    }
  },
  {
    "type": "primary-actions",
    "attributes": {
      "actions": [
        {
          "text": "View Discussion",
          "action": {
            "type": "redirect",
            "url": "/discussions/topics/1242"
          }
        }
      ]
    }
  }
]

Like and share stuff

[
  {
    "type": "cause",
    "attributes": {
      "userName": "Hello greg",
      "actionText": "liked a topic",
      "timeStamp": "2016-05-05T13:53:55Z",
      "profileUrl": "https://s3.amazonaws.com/influitiveimagesdevelopment/app/contacts/thumb/1.png?1459780327"
    }
  },
  {
    "type": "title",
    "attributes": {
      "text": "I'm creating a topic for shane"
    }
  },
  {
    "type": "primary-actions",
    "attributes": {
      "actions": [
        {
          "text": "View Discussion",
          "action": {
            "type": "redirect",
            "url": "/discussions/topics/1242"
          }
        }
      ]
    }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment