summaryrefslogtreecommitdiff
path: root/actions/api.php
AgeCommit message (Collapse)Author
2009-07-10Group timeline API method doesn't require authZach Copley
2009-07-06Add special basic auth handling for friendships/show. Other fixups.Zach Copley
2009-06-27log IP for API auth errorsEvan Prodromou
2009-06-20Update copyright dates in files modified in 2009Evan Prodromou
2009-06-20change Controlez-Vous to Control YourselfEvan Prodromou
2009-06-04Handle the ways Twitter accepts passing the user in the query string.Dan Moore
2009-05-28Warning log msg when http basic auth failsZach Copley
2009-04-29Added 'mentions' the the list of API methods requiring bare authZach Copley
2009-04-13typo in api.phpEvan Prodromou
2009-04-13isReadOnly() now takes argumentsEvan Prodromou
Add an array of arguments to isReadOnly() method of actions, to let them change their results depending on what actions are called. Primarily used by the 'api' action. Ideally in the future that will be multiple actions. But this might still be useful.
2009-03-07More api actions which need no auth when called with parameter.Adrian Lang
2009-02-18Open the /api/laconica/config.format API method so clients can determine ↵Zach Copley
whether a site is "private".
2009-01-23Merge branch 'master' of ssh://zach@dev.controlyourself.ca/var/www/trunkZach Copley
2009-01-23Bring the Twitter compatible API inline with new uiredesign stuffZach Copley
2009-01-23Merge branch 'master' of /var/www/mublogEvan Prodromou
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-15All actions now use isReadOnly()Evan Prodromou
2009-01-15Convert use of common_server_error and common_user_error to methods on ActionEvan Prodromou
2009-01-15Convert all actions to use new UI functionsEvan Prodromou
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
2009-01-08Revert "Twitter-compatible API - update verify_credentials to return profile"Evan Prodromou
This reverts commit b801f73b1f4706f15783f91fd07508a03175592d. Twhirl assumes we return the old kind of results, so we have to do that.
2008-12-15Twitter-compatible API - update verify_credentials to return profileZach Copley
darcs-hash:20081216030455-7b5ce-552516bfb34cb0ae1550787813feb4a4514d6c53.gz
2008-12-30add laconica methods to unauthed onesEvan Prodromou
darcs-hash:20081230203747-84dde-dbdb783c8883097af0f69b4c06c2425c54964773.gz
2008-12-23move opening brace of class declaration to next lineEvan Prodromou
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-23change function headers to K&R styleEvan Prodromou
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-23replace NULL with nullEvan Prodromou
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-23replace all tabs with four spacesEvan Prodromou
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-03prepare the action obj for APIEvan Prodromou
darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz
2008-12-03fine-tuning the privacy flagEvan Prodromou
darcs-hash:20081203183432-5ed1f-7626661b797f64594f990ee06d9e13b73b265b49.gz
2008-10-24Twitter-compatible API - removed debugging statementzach
darcs-hash:20081024215101-462f3-cef62f04283d58538dd7aab621668ce2274593f7.gz
2008-10-24Twitter-compatible API - checks for is_readonly() now work!zach
darcs-hash:20081024213745-462f3-7c26611e7f75265affafd471c3d66e02ec7e686e.gz
2008-10-24add is_readonly() to api.phpEvan Prodromou
darcs-hash:20081024201234-84dde-06d2c147ec967cb8123ee0639a76f00a5f44e5c5.gz
2008-10-16Twitter-compatible API:zach
- 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-15Twitter-compatible API - added favorites/favorites to list of methods only ↵zach
requiring bare auth darcs-hash:20081015163112-462f3-ca22e3fcf4a5d3ad4613dd08c4bf7ce59e296385.gz
2008-09-30Twitter-compatible API - cleaned up sloppy control flow: exit() statements ↵zach
everywhere darcs-hash:20081001025421-462f3-3bf666327de3a3c5ea506b2c387741dc3d0e82bf.gz
2008-08-19Twitter-compatible API - Added /statuses/followers to methods thatzach
require bareauth only if no nickname/id is supplied. darcs-hash:20080819195431-462f3-93d27cf980fd09aeb30ea741639c1650baecad60.gz
2008-07-30Twitter-compatible API: implemented /users/show.format methodzach
(and some API bug fixes) darcs-hash:20080730213226-ca946-eb89bad91eee630ac286d537ba42f0042b8d2109.gz
2008-07-20Twitter-compatible API - Error handling that better matches Twitter'szach
darcs-hash:20080720070905-ca946-dda57dd92210461361fd58b7a3244bf24c01e801.gz
2008-07-19correct handling of bareauthEvan Prodromou
darcs-hash:20080719171605-84dde-4b23eb6896d9bb6e57ce65de374acaf1703b7463.gz
2008-07-19bare auth for friends, tooEvan Prodromou
darcs-hash:20080719171023-84dde-4d562898d10a2342db271640951fcf0ba552cc01.gz
2008-07-19try again with user_timeline authEvan Prodromou
darcs-hash:20080719155526-84dde-5157cd11d2f96128321b46cb2bea8ff27ce4478f.gz
2008-07-18Twitter-compatible API - added missing double quotes to WWW-Authenticate headerzach
darcs-hash:20080718185053-ca946-457b1ce5261abeb067bbbaba43b707ad4751aeef.gz
2008-07-17Twitter-compatible API: white listed user_timeline and show as per twitterzach
darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz
2008-07-17Twitter-compatible API - /statuses/show and /statuses/update now workzach
darcs-hash:20080717054411-ca946-e839882ebec3f6d6a12a3f5ecdc1cc403e8afe51.gz
2008-07-16Twitter-compatible API - code cleanupzach
darcs-hash:20080716220223-ca946-e3eed117cded61eb9c2d2805fd07758f883fb85b.gz
2008-07-15Prepended 'Twit' to Twitter-compatible API actions (renamed actionzach
files) to make it more clear what the action files are for. darcs-hash:20080715043121-ca946-bb7acd42271117dbb77d5e16292673a4b8cfad53.gz
2008-07-14Second shot at figuring out action dispatch for Twitter-compatible APIzach
darcs-hash:20080714080741-ca946-1b2f8c026f433e27a30abc104ca2dba11b9b662e.gz
2008-07-12First volly at a Twitter-compatible API. Just working out thezach
detials of 1) Basic Auth and 2) dispatch to the right Action class files to handle the requests. You can hit it with... http://localhost/laconica/api/public_timeline.json or to try Basic Auth you can try something like: http://nickname:password@localhost/laconica/api/statuses/friends_timeline.xml Although that actual method isn't done yet, so it should authenticate and then complain. darcs-hash:20080712081247-ca946-acd3e0e2762c7d9ff0cb3cd7a53cfdfcc5b26660.gz