Skip to content

Instantly share code, notes, and snippets.

@codenamejason
Last active August 29, 2015 14:16
Show Gist options
  • Save codenamejason/67ad25cc76edf87f4ac2 to your computer and use it in GitHub Desktop.
Save codenamejason/67ad25cc76edf87f4ac2 to your computer and use it in GitHub Desktop.
TYPES of actions
The action parameter is in the format {object_type} : : {operation}. If you have a newsfeed item with action = event : :*, then the object parameter will contain data in the format expected of an event object type. The object types are listed below. When created a new activity, you must make sure the action corresponds with the object type.
- event
{
title: {string},
description: {String},
start: {Date},
duration: {Integer}, // duration in seconds
}
- post
{
title: {string},
body: {string},
created_at: {String}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment