From b69fca14e76a2f5db0cd0924fe5e7056e94771b1 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 15:49:37 -0800 Subject: initial doco --- doc/html/include_2api_8php.html | 1523 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 1523 insertions(+) create mode 100644 doc/html/include_2api_8php.html (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html new file mode 100644 index 000000000..6c6254dc2 --- /dev/null +++ b/doc/html/include_2api_8php.html @@ -0,0 +1,1523 @@ + + + + + + +The Red Project: include/api.php File Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
api.php File Reference
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

 api_user ()
 
 api_date ($str)
 
 api_register_func ($path, $func, $auth=false)
 
 api_login (&$a)
 
 api_call (&$a)
 
 api_rss_extra (&$a, $arr, $user_info)
 
 api_get_user (&$a, $contact_id=Null)
 
 api_item_get_user (&$a, $item)
 
 api_apply_template ($templatename, $type, $data)
 
 api_account_verify_credentials (&$a, $type)
 
 api_account_logout (&$a, $type)
 
 requestdata ($k)
 
 api_export_basic (&$a, $type)
 
 api_statuses_mediap (&$a, $type)
 
 api_statuses_update (&$a, $type)
 
 api_status_show (&$a, $type)
 
 api_users_show (&$a, $type)
 
 api_statuses_home_timeline (&$a, $type)
 
 api_statuses_public_timeline (&$a, $type)
 
 api_statuses_show (&$a, $type)
 
 api_statuses_repeat (&$a, $type)
 
 api_statuses_destroy (&$a, $type)
 
 api_statuses_mentions (&$a, $type)
 
 api_statuses_user_timeline (&$a, $type)
 
 api_favorites (&$a, $type)
 
 api_format_as ($a, $ret, $user_info)
 
 api_format_messages ($item, $recipient, $sender)
 
 api_format_items ($r, $user_info)
 
 api_account_rate_limit_status (&$a, $type)
 
 api_help_test (&$a, $type)
 
 api_statuses_f (&$a, $type, $qtype)
 
 api_statuses_friends (&$a, $type)
 
 api_statuses_followers (&$a, $type)
 
 api_statusnet_config (&$a, $type)
 
 api_statusnet_version (&$a, $type)
 
 api_friendica_version (&$a, $type)
 
 api_ff_ids (&$a, $type, $qtype)
 
 api_friends_ids (&$a, $type)
 
 api_followers_ids (&$a, $type)
 
 api_direct_messages_new (&$a, $type)
 
 api_direct_messages_box (&$a, $type, $box)
 
 api_direct_messages_sentbox (&$a, $type)
 
 api_direct_messages_inbox (&$a, $type)
 
 api_direct_messages_all (&$a, $type)
 
 api_direct_messages_conversation (&$a, $type)
 
 api_oauth_request_token (&$a, $type)
 
 api_oauth_access_token (&$a, $type)
 
+ + + + + +

+Variables

 $API = array()
 
 $called_api = Null
 
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
api_account_logout ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_account_rate_limit_status ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_account_verify_credentials ($a,
 $type 
)
+
+

Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. http://developer.twitter.com/doc/get/account/verify_credentials

+ +
+
+ + + +
+
+ + + + + + + + +
api_call ($a)
+
+ +

Referenced by api_content().

+ +
+
+ +
+
+ + + + + + + + +
api_date ( $str)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_direct_messages_all ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_direct_messages_box ($a,
 $type,
 $box 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_direct_messages_conversation ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_direct_messages_inbox ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_direct_messages_new ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_direct_messages_sentbox ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_export_basic ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_favorites ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_ff_ids ($a,
 $type,
 $qtype 
)
+
+ +

Referenced by api_followers_ids(), and api_friends_ids().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_followers_ids ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_format_as ( $a,
 $ret,
 $user_info 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_format_items ( $r,
 $user_info 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_format_messages ( $item,
 $recipient,
 $sender 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_friendica_version ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_friends_ids ($a,
 $type 
)
+
+ +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + +
api_help_test ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_item_get_user ($a,
 $item 
)
+
+ +

Referenced by api_format_items().

+ +
+
+ +
+
+ + + + + + + + +
api_login ($a)
+
+

Simple HTTP Login

+ +

Referenced by api_call(), and api_get_user().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_oauth_access_token ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_oauth_request_token ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_register_func ( $path,
 $func,
 $auth = false 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_rss_extra ($a,
 $arr,
 $user_info 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_status_show ($a,
 $type 
)
+
+ +

Referenced by api_statuses_mediap(), and api_statuses_update().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_destroy ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
api_statuses_f ($a,
 $type,
 $qtype 
)
+
+

https://dev.twitter.com/docs/api/1/get/statuses/friends This function is deprecated by Twitter returns: json, xml

+ +

Referenced by api_statuses_followers(), and api_statuses_friends().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_followers ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_friends ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_home_timeline ($a,
 $type 
)
+
+

http://developer.twitter.com/doc/get/statuses/home_timeline

+

TODO: Optional parameters TODO: Add reply info

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_mediap ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_mentions ($a,
 $type 
)
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_public_timeline ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_repeat ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_show ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_update ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statuses_user_timeline ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statusnet_config ($a,
 $type 
)
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
api_statusnet_version ($a,
 $type 
)
+
+ +
+
+ + + +
+
+ + + + + + + + + + + + + + + + + + +
api_users_show ($a,
 $type 
)
+
+

Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. http://developer.twitter.com/doc/get/users/show

+ +
+
+ +
+
+ + + + + + + + +
requestdata ( $k)
+
+

get data from $_REQUEST ( e.g. $_POST or $_GET )

+ +

Referenced by api_statuses_mediap(), and api_statuses_update().

+ +
+
+

Variable Documentation

+ +
+
+ + + + +
$API = array()
+
+

TWITTER API

+ +

Referenced by api_call(), and api_register_func().

+ +
+
+ +
+
+ + + + +
$called_api = Null
+
+ +

Referenced by api_call(), and api_get_user().

+ +
+
+
+
+ + + + -- cgit v1.2.3 From 0ee1e83a3c6bb48064789a622f5eb7331733cb64 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Feb 2013 16:04:28 -0800 Subject: small doco update --- doc/html/include_2api_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 6c6254dc2..707e17825 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -1514,7 +1514,7 @@ Variables - - - - + -- cgit v1.2.3 From 9e22ec928b9534ea9db0d18bf685fb0d357fbad2 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 18 Apr 2013 21:06:31 -0700 Subject: more umbilical cutting --- doc/html/include_2api_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 15f14c051..9b9479a40 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -28,7 +28,7 @@ - + -- cgit v1.2.3 From 5e4b9d7766ceffd19785f14443cc1b4d4f675d4e Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 14 May 2013 21:25:58 -0700 Subject: disable pcss when installing since modules don't yet work and pcss uses the view module, plus weekly doc update --- doc/html/include_2api_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index c105f4b39..7529de90f 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -28,7 +28,7 @@
The Red Project
-- cgit v1.2.3 From 34526e82531c67995e25cf04abce0d927ce22ffd Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 10 May 2013 03:59:11 -0700 Subject: doc cleanup --- doc/html/include_2api_8php.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 9b9479a40..c105f4b39 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -4,7 +4,7 @@ -The Red Project: include/api.php File Reference +The Red Matrix: include/api.php File Reference @@ -30,7 +30,7 @@
-
The Red Project +
The Red Matrix
- + + + @@ -346,6 +348,32 @@ Variables

Referenced by api_content().

+ + + +
+
+
The Red Matrix
-- cgit v1.2.3 From 5c1f959c1828066358ec868ffb953e88f16195c6 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 24 May 2013 06:02:30 -0700 Subject: set default contact affinity back to 99 - we'll solve the other problem another way, this one is flawed --- doc/html/include_2api_8php.html | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 7529de90f..59e4da8b4 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -139,6 +139,8 @@ Functions
 
 api_export_basic (&$a, $type)
 
 api_channel_stream (&$a, $type)
 
 api_statuses_mediap (&$a, $type)
 
 api_statuses_update (&$a, $type)
+ + + + + + + + + + + + + + + + + +
api_channel_stream ($a,
 $type 
)
+
+
@@ -1428,7 +1456,7 @@ Variables -- cgit v1.2.3 From 6cafab10e6e168da73a9916c04e54fa43e2ae85b Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 3 Jun 2013 16:29:33 -0700 Subject: fix pager, doc update --- doc/html/include_2api_8php.html | 56 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 59e4da8b4..a09a6c142 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -141,6 +141,10 @@ Functions    api_channel_stream (&$a, $type)   + api_albums (&$a, $type) +  + api_photos (&$a, $type) +   api_statuses_mediap (&$a, $type)    api_statuses_update (&$a, $type) @@ -295,6 +299,32 @@ Variables

Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not. http://developer.twitter.com/doc/get/account/verify_credentials

+
+ + +
+
+ + + + + + + + + + + + + + + + + + +
api_albums ($a,
 $type 
)
+
+
@@ -970,6 +1000,32 @@ Variables
+
+ + +
+
+ + + + + + + + + + + + + + + + + + +
api_photos ($a,
 $type 
)
+
+
-- cgit v1.2.3 From 8cd9a2c3a944e804c72ef461df801116c6b44ac7 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Nov 2013 19:37:39 -0800 Subject: doc updates --- doc/html/include_2api_8php.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index a09a6c142..5a1460ab8 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -28,7 +28,7 @@ - + + + @@ -1512,7 +1514,7 @@ Variables
The Red Matrix
-- cgit v1.2.3 From 16c2aa042fade698ece5dcb67cde10ff8155bd65 Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 7 Mar 2014 14:30:24 -0800 Subject: doc update --- doc/html/include_2api_8php.html | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'doc/html/include_2api_8php.html') diff --git a/doc/html/include_2api_8php.html b/doc/html/include_2api_8php.html index 5a1460ab8..2491ddee0 100644 --- a/doc/html/include_2api_8php.html +++ b/doc/html/include_2api_8php.html @@ -149,6 +149,8 @@ Functions
 
 api_statuses_update (&$a, $type)
 
 red_item_new (&$a, $type)
 
 api_status_show (&$a, $type)
 
 api_users_show (&$a, $type)
@@ -1541,6 +1543,32 @@ Variables

Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. http://developer.twitter.com/doc/get/users/show

+
+ + +
+
+ + + + + + + + + + + + + + + + + + +
red_item_new ($a,
 $type 
)
+
+
-- cgit v1.2.3