Evan Prodromou
793a6a1155
change Controlez-Vous to Control Yourself
2009-06-20 16:00:04 -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
5e53a97a41
Warning log msg when http basic auth fails
2009-05-28 16:18:58 -07:00
Zach Copley
8295402fb3
Added 'mentions' the the list of API methods requiring bare auth
2009-04-29 13:16:52 -07:00
Evan Prodromou
4c9be4d566
typo in api.php
2009-04-13 15:52:15 -04:00
Evan Prodromou
e9e75fc9d5
isReadOnly() now takes arguments
...
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-04-13 15:49:26 -04:00
Adrian Lang
3383e78063
More api actions which need no auth when called with parameter.
2009-03-07 13:16:54 +00:00
Zach Copley
28e1c163e3
Open the /api/laconica/config.format API method so clients can determine whether a site is "private".
2009-02-18 15:33:52 -08: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
ba9f1f603b
All actions now use isReadOnly()
2009-01-15 23:09:16 +00:00
Evan Prodromou
4b0cf99e56
Convert use of common_server_error and common_user_error to methods on Action
2009-01-15 23:03:38 +00:00
Evan Prodromou
eaa81d25fa
Convert all actions to use new UI functions
...
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-15 22:57:15 +00: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
2047c68d71
add laconica methods to unauthed ones
...
darcs-hash:20081230203747-84dde-dbdb783c8883097af0f69b4c06c2425c54964773.gz
2008-12-30 15:37:47 -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
Evan Prodromou
64411ff957
prepare the action obj for API
...
darcs-hash:20081203210358-5ed1f-3ff0de9c00c72de6bde703b150b24597ff8fadf4.gz
2008-12-03 16:03:58 -05:00
Evan Prodromou
8c10b0ac4d
fine-tuning the privacy flag
...
darcs-hash:20081203183432-5ed1f-7626661b797f64594f990ee06d9e13b73b265b49.gz
2008-12-03 13:34:32 -05:00
zach
85b9e58e53
Twitter-compatible API - removed debugging statement
...
darcs-hash:20081024215101-462f3-cef62f04283d58538dd7aab621668ce2274593f7.gz
2008-10-24 17:51:01 -04:00
zach
f8a73c157e
Twitter-compatible API - checks for is_readonly() now work!
...
darcs-hash:20081024213745-462f3-7c26611e7f75265affafd471c3d66e02ec7e686e.gz
2008-10-24 17:37:45 -04:00
Evan Prodromou
22cb0c5687
add is_readonly() to api.php
...
darcs-hash:20081024201234-84dde-06d2c147ec967cb8123ee0639a76f00a5f44e5c5.gz
2008-10-24 16:12:34 -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
9b75a8ea9f
Twitter-compatible API - added favorites/favorites to list of methods only requiring bare auth
...
darcs-hash:20081015163112-462f3-ca22e3fcf4a5d3ad4613dd08c4bf7ce59e296385.gz
2008-10-15 12:31:12 -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
e980ebc714
Twitter-compatible API - Added /statuses/followers to methods that
...
require bareauth only if no nickname/id is supplied.
darcs-hash:20080819195431-462f3-93d27cf980fd09aeb30ea741639c1650baecad60.gz
2008-08-19 15:54:31 -04:00
zach
93d25bec33
Twitter-compatible API: implemented /users/show.format method
...
(and some API bug fixes)
darcs-hash:20080730213226-ca946-eb89bad91eee630ac286d537ba42f0042b8d2109.gz
2008-07-30 17:32:26 -04:00
zach
140689800b
Twitter-compatible API - Error handling that better matches Twitter's
...
darcs-hash:20080720070905-ca946-dda57dd92210461361fd58b7a3244bf24c01e801.gz
2008-07-20 03:09:05 -04:00
Evan Prodromou
2d47b3ad64
correct handling of bareauth
...
darcs-hash:20080719171605-84dde-4b23eb6896d9bb6e57ce65de374acaf1703b7463.gz
2008-07-19 13:16:05 -04:00
Evan Prodromou
dfbc427e04
bare auth for friends, too
...
darcs-hash:20080719171023-84dde-4d562898d10a2342db271640951fcf0ba552cc01.gz
2008-07-19 13:10:23 -04:00
Evan Prodromou
0c271c9d17
try again with user_timeline auth
...
darcs-hash:20080719155526-84dde-5157cd11d2f96128321b46cb2bea8ff27ce4478f.gz
2008-07-19 11:55:26 -04:00
zach
cebbff432a
Twitter-compatible API - added missing double quotes to WWW-Authenticate header
...
darcs-hash:20080718185053-ca946-457b1ce5261abeb067bbbaba43b707ad4751aeef.gz
2008-07-18 14:50:53 -04:00
zach
6125785064
Twitter-compatible API: white listed user_timeline and show as per twitter
...
darcs-hash:20080718023334-ca946-5d158ade124318f7f846d1f8e0f35ccf1a234027.gz
2008-07-17 22:33:34 -04:00
zach
b5659ed85a
Twitter-compatible API - /statuses/show and /statuses/update now work
...
darcs-hash:20080717054411-ca946-e839882ebec3f6d6a12a3f5ecdc1cc403e8afe51.gz
2008-07-17 01:44:11 -04:00
zach
ac2d811a46
Twitter-compatible API - code cleanup
...
darcs-hash:20080716220223-ca946-e3eed117cded61eb9c2d2805fd07758f883fb85b.gz
2008-07-16 18:02:23 -04:00
zach
3df358a9e9
Prepended 'Twit' to Twitter-compatible API actions (renamed action
...
files) to make it more clear what the action files are for.
darcs-hash:20080715043121-ca946-bb7acd42271117dbb77d5e16292673a4b8cfad53.gz
2008-07-15 00:31:21 -04:00
zach
cc55a45f4b
Second shot at figuring out action dispatch for Twitter-compatible API
...
darcs-hash:20080714080741-ca946-1b2f8c026f433e27a30abc104ca2dba11b9b662e.gz
2008-07-14 04:07:41 -04:00
zach
0c90e94864
First volly at a Twitter-compatible API. Just working out the
...
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
2008-07-12 04:12:47 -04:00