From 6e04dd96a1ff001f67db59e796b36cba30e4fdb4 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 11 Nov 2015 20:51:15 -0800 Subject: will also need api doco --- doc/api/statuses_update.bb | 23 +++++++++++++++++++++++ include/dir_fns.php | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 doc/api/statuses_update.bb diff --git a/doc/api/statuses_update.bb b/doc/api/statuses_update.bb new file mode 100644 index 000000000..acad440de --- /dev/null +++ b/doc/api/statuses_update.bb @@ -0,0 +1,23 @@ +[h2]statuses/update[/h2] +Parameters + + title: Title of the status + status: Status in text [or bbcode] format + htmlstatus: Status in HTML format + in_reply_to_status_id + lat: latitude + long: longitude + media: image data + source: Application name + group_allow + contact_allow + group_deny + contact_deny + + +Example + +[code] +curl -u theUsername:thePassword http://mywebsite/api/statuses/update.xml -d status='Hello world' +[/code] + diff --git a/include/dir_fns.php b/include/dir_fns.php index 398f43d00..b9f221bd1 100644 --- a/include/dir_fns.php +++ b/include/dir_fns.php @@ -18,7 +18,7 @@ function find_upstream_directory($dirmode) { // Thwart attempts to use a private directory - if(($preferred) && ($prefered != z_root())) { + if(($preferred) && ($preferred != z_root())) { $r = q("select * from site where site_url = '%s' limit 1", dbesc($preferred) ); -- cgit v1.2.3