diff options
author | zotlabs <mike@macgirvin.com> | 2016-12-02 22:51:08 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-12-02 22:51:08 -0800 |
commit | 6bcc039e0147c3440f51637f7a94e23231008112 (patch) | |
tree | 25773627f9495bee62f51fc95eb16b319889e6ba /doc/api_item_store.md | |
parent | e776e79c1e294272f13a41178190f43954b87912 (diff) | |
download | volse-hubzilla-6bcc039e0147c3440f51637f7a94e23231008112.tar.gz volse-hubzilla-6bcc039e0147c3440f51637f7a94e23231008112.tar.bz2 volse-hubzilla-6bcc039e0147c3440f51637f7a94e23231008112.zip |
initial doco for the item/store api call
Diffstat (limited to 'doc/api_item_store.md')
-rw-r--r-- | doc/api_item_store.md | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/doc/api_item_store.md b/doc/api_item_store.md new file mode 100644 index 000000000..c942e1149 --- /dev/null +++ b/doc/api_item_store.md @@ -0,0 +1,91 @@ +API item/store +============== + + +Description: item/store posts an item (typically a conversation item or post, but can be any item). + + +Required: + +- body + + text/bbcode contents by default. + + +Optional: + +- $_FILES['media'] + uploaded media file (currently photos) + +- title + title of post/item + +- coord + geographic coordinates + +- location + freefrom location + +- expire + datetime this post will expire or be removed + +- mimetype + mimetype if not text/bbcode + +- parent + item.id of parent to this post (makes it a comment) + +- parent_mid + alternate form of parent using message_id + +- remote_xchan + xchan.xchan_hash of this message author if not the channel owner + +- consensus + boolean set to true if this is a consensus or voting item (default false) + +- nocomment + boolean set to true if comments are to be disabled (default false) + +- origin + do not use this without reading the code + +- namespace + persistent identity for a remote network or service + +- remote_id + message_id of this resource on a remote network or service + +- message_id + message_id of this item (leave unset to generate one) + +- created + datetime of message creation + +- post_id + existing item.id if this is an edit operation + +- app + application or network name to display with item + +- categories + comma separated categories for this item + +- webpage + item.page_type if not 0 + +- pagetitle + for webpage and design elements, the 'page name' + +- layout_mid + item.mid of layout for this design element + +- plink + permalink for this item if different than the default + +- verb + activitystream verb for this item/activity + +- obj_type + activitystream object type for this item/activity + |