Commit Graph

74 Commits

Author SHA1 Message Date
Craig Andrews 45ad4cfe72 Added a url field to hold the permalink. I believe this field is very useful for api consumers. 2009-07-30 22:43:07 -04:00
Craig Andrews ec103b90e3 Implemented the "show" method of the laconica groups api 2009-07-30 22:15:24 -04:00
Craig Andrews 38d70f1386 Add <category> to RSS 2.0, use the same tag finding method for RSS 1.0 as for Atom and RSS 2.0.
http://laconi.ca/trac/ticket/864
2009-07-21 18:01:22 -04:00
Zach Copley 44f3f2bd2a Only create attachment elements if attachment is an enclosure 2009-07-17 14:25:36 -07:00
Zach Copley 9c670ba695 Only populate attachments array element if there are attachments 2009-07-17 12:42:16 -07:00
Zach Copley baec1320ab Also show XML representation of attachments in the API 2009-07-17 12:42:05 -07:00
Craig Andrews 75545cdc07 Added attachment information to the json responses 2009-07-15 10:37:50 -04:00
Craig Andrews 593af9feb6 Moved the decision logic as to whether an attachment should be an enclosure to the File class 2009-07-14 13:33:40 -04:00
Toby Inkster 38784141d1 Copy isset($attachment->filename) fix from RSS 1.0 to RSS 2.0 and Atom 1.0 feeds. 2009-07-13 16:56:52 +01:00
Zach Copley 0ac08c1fb3 Make get_group() behave more like get_user() 2009-07-10 18:22:19 -07:00
Craig Andrews 08d50655f3 added group status api, located at /api/statuses/group_timeline/ID.rss
http://laconi.ca/trac/ticket/1702
2009-07-10 17:00:27 -04:00
Evan Prodromou 8b65883f9d cache frequently-used subscriber, subscription, notice and fave count values 2009-07-09 17:28:38 -07:00
Craig Andrews 69574591d0 Notice attachments are enclosures in feeds (Atom, RSS 1.0/RDF, and RSS 2.0).
http://laconi.ca/trac/ticket/1690
2009-07-09 13:18:57 -04:00
Zach Copley a2a4cc35f6 Implement friendships/show API method 2009-07-03 15:42:12 -07:00
Evan Prodromou aec6456c91 Update copyright dates in files modified in 2009 2009-06-20 16:12:55 -07:00
Evan Prodromou 793a6a1155 change Controlez-Vous to Control Yourself 2009-06-20 16:00:04 -07:00
Zach Copley 7e25a7f3aa Output XML and JSON error msgs for API calls 2009-06-17 14:32:36 -07:00
Zach Copley 8064397588 Ticket #1611 and a bunch of code cleanup 2009-06-12 01:31:22 -07:00
Dan Moore 6658e2a2ee Handle the ways Twitter accepts passing the user in the query string. 2009-06-04 17:57:03 -04:00
Zach Copley 78f8b91a13 Ticket #1568 - API should return full user objects 2009-05-29 19:23:53 -07:00
Dan Moore 90fb7be99a Bringing the presentation of boolean variables (favorited, truncated, profile_background_tile) and the result from friendships/exist in JSON results from the Twitter Compatible API in line with what the real Twitter API does.
Currently, laconica returns text strings enclosed in quotes instead of bare Javascript booleans.  This change fixes that.

See http://laconi.ca/trac/ticket/1326 for one open issue related to this.
2009-04-18 15:33:36 -04:00
Zach Copley 4d0e4f733b Make API dates more compatible with Twitter - ticket 1432 2009-04-16 14:40:57 -07:00
Evan Prodromou 3ef4f251ac One function for producing Atom entry for a Notice
Took the various places that we create an atom entry for a notice, and
jammed them together into one function of the notice class, and then
used that function. Also, added Atom threading extension and
categories for hashtags.
2009-03-22 16:58:38 -04:00
Zach Copley 91980c73a7 Updates to the API to improve Atom feeds 2009-03-10 16:15:57 -07:00
Zach Copley b1f337fe01 First crack at Twitter-like JSON search results for the API 2009-03-06 13:33:47 -08:00
Zach Copley 36bb33fb1d Made /api/account/verify_credentials.format return an extended user object. Updates to status and user API objects. 2009-03-04 16:17:40 -08:00
Evan Prodromou 343cd6f205 Move common_avatar_* functions to Avatar
Moved the common_avatar_* functions to the Avatar class. Typically
either as methods on the object or as static methods. Replaced all the
uses of the functions in other modules.
2009-02-06 03:55:48 -05:00
Zach Copley 0ef33663ce Merge branch 'master' of ssh://zach@dev.controlyourself.ca/var/www/trunk 2009-01-23 01:20:00 -08:00
Zach Copley b13374faa5 Bring the Twitter compatible API inline with new uiredesign stuff 2009-01-23 01:19:19 -08:00
Evan Prodromou a7c85bebd5 Merge branch 'master' of /var/www/mublog
Conflicts:

	actions/api.php
	actions/deletenotice.php
	actions/recoverpassword.php
	actions/remotesubscribe.php
	actions/tag.php
	actions/tagrss.php
	actions/twitapiaccount.php
	actions/twitapiusers.php
	classes/Notice.php
	classes/User.php
	lib/common.php
	lib/language.php
	lib/subs.php
	lib/twitterapi.php
	lib/util.php
	scripts/inbox_users.php
	scripts/update_translations.php

Merged development trunk into laconica head. woohoo!
2009-01-23 08:58:31 +01:00
Evan Prodromou 0f8b902004 Revert "Twitter-compatible API - update verify_credentials to return profile"
This reverts commit b801f73b1f.

Twhirl assumes we return the old kind of results, so we have to do that.
2009-01-08 16:15:08 -05:00
Zach Copley b801f73b1f Twitter-compatible API - update verify_credentials to return profile
darcs-hash:20081216030455-7b5ce-552516bfb34cb0ae1550787813feb4a4514d6c53.gz
2008-12-15 22:04:55 -05:00
Evan Prodromou b6820b4f61 trim some output to avoid excessive whitespace
darcs-hash:20081214161942-84dde-bfb91a534eb01d3e16b364937dcf405277e75a6a.gz
2008-12-14 11:19:42 -05:00
Zach Copley 64c57b7c77 Fix bad arguments that were throwing PHP warnings
darcs-hash:20081211203659-7b5ce-43cfb2067c296374779a532410f186c42e8d2f99.gz
2008-12-11 15:36:59 -05:00
Evan Prodromou b264c03d32 move opening brace of class declaration to next line
Another gigantor PEAR coding standards patch. Here, I've moved the
opening curly bracket on a class statement to the following line.

darcs-hash:20081223194923-84dde-77a93de314caadbcb5b70bf346a4648be77a864e.gz
2008-12-23 14:49:23 -05:00
Evan Prodromou 04ef1ba8ee change function headers to K&R style
Another huge change, for PEAR code standards compliance. Function
headers have to be in K&R style (opening brace on its own line),
instead of having the opening brace on the same line as the function
and parameters. So, a little perl magic found all the function
definitions and move the opening brace to the next line (properly
indented... usually).

darcs-hash:20081223193323-84dde-a28e36ecc66672c783c2842d12fc11043c13ab28.gz
2008-12-23 14:33:23 -05:00
Evan Prodromou eb2f9c98ac replace NULL with null
Another global search-and-replace update. Here, I've replaced the PHP
keyword 'NULL' with its lowercase version. This is another PEAR code
standards change.

darcs-hash:20081223192129-84dde-4a0182e0ec16a01ad88745ad3e08f7cb501aee0b.gz
2008-12-23 14:21:29 -05:00
Evan Prodromou edbc0c665c replace all tabs with four spaces
The PEAR coding standards decree: no tabs, but indent by four spaces.
I've done a global search-and-replace on all tabs, replacing them by
four spaces. This is a huge change, but it will go a long way to
getting us towards phpcs-compliance. And that means better code
readability, and that means more participation.

darcs-hash:20081223191907-84dde-21e8efe210e6d5d54e935a22d0cee5c7bbfc007d.gz
2008-12-23 14:19:07 -05:00
Zach Copley 6d464ec91b Remove a bunch of extraneous logging statements
darcs-hash:20081211024233-7b5ce-e4911c049adf067f24821f868a27bdf67c324caf.gz
2008-12-10 21:42:33 -05:00
Evan Prodromou a61c7546c8 HTML output in RSS 2.0 and Atom
darcs-hash:20081205160205-84dde-68363153ee7f4f75a7c25ca6546816b648406b8b.gz
2008-12-05 11:02:05 -05:00
zach aac0605bd1 Twitter-compatible API - don't strip XML-illegal chars from JSON output
darcs-hash:20081106225721-462f3-b80ba75f87a4b36b803868653c956c393a236626.gz
2008-11-06 17:57:21 -05:00
zach e0c3bf5a75 Better UTF-8 escaped entity handling. Fixed bad chars in all RSS feeds.
darcs-hash:20081104084027-462f3-ea7ab93938358bf90a1c1851d6f665973beae767.gz
2008-11-04 03:40:27 -05:00
Evan Prodromou 90e4512df2 add SUP links to RSS and Atom, too
darcs-hash:20081026145326-5ed1f-430b98eedef21903caaae47e3355482ae7bfa616.gz
2008-10-26 10:53:26 -04:00
zach b2f0ad1ccc Twitter-compatible API:
- Filled in favorites tags in statuses
  - Filled in more tags in user/show, including undocumented features
  - Better error handling and more consistent error messages
  - Code clean-up and refactoring
  - Removed huge obnoxious comments

darcs-hash:20081017023638-462f3-27b5d2709e423c616723d4bcfbc9d7d30a4ad161.gz
2008-10-16 22:36:38 -04:00
zach fd576d73d0 Twitter-compatible API - direct_messages/new.json was not answering
darcs-hash:20081006153715-462f3-395d230824398e7aa50aeba200b9b716c64f00c9.gz
2008-10-06 11:37:15 -04:00
zach 6beddfdbb9 Twitter-compatible API - cleaned up sloppy control flow: exit() statements everywhere
darcs-hash:20081001025421-462f3-3bf666327de3a3c5ea506b2c387741dc3d0e82bf.gz
2008-09-30 22:54:21 -04:00
zach 1c4f7722da Twitter-compatible API - factored out redundant JSON printing functions
darcs-hash:20080930212526-462f3-abe9f1f2fc395c751b2861e686d638ea0a8ca001.gz
2008-09-30 17:25:26 -04:00
zach 37b3bd5489 Twitter-compatible API - Favorites now working!
darcs-hash:20080930194435-462f3-a0a7fec3f0d05dc3b1fe8a9219155f4d59092e43.gz
2008-09-30 15:44:35 -04:00
zach bbd5f6b471 Twitter-compatible API - added source links to statuses/notices
darcs-hash:20080930175354-462f3-b49bef0e1b91ef1b94c01426c4c54900a43554d3.gz
2008-09-30 13:53:54 -04:00
Zach Copley 924491f08a Twitter-compatible API: Direct messages work (everything but destroy())
darcs-hash:20080929050826-7b5ce-201624b32e174ae85b906b92353e39aa043838fa.gz
2008-09-29 01:08:26 -04:00