summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/updateprofile.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index ffbcc81c8..5e6166c5e 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -22,6 +22,17 @@ if (!defined('LACONICA')) { exit(1); }
class UpdateprofileAction extends Action {
function handle($args) {
parent::handle($args);
- common_server_error(_t('Not yet implemented.'));
+ try {
+ $req = OAuthRequest::from_request();
+ # Note: server-to-server function!
+ $server = omb_oauth_server();
+ list($consumer, $token) = $server->verify_request($req);
+ if ($this->update_profile($req, $consumer, $token)) {
+ print "omb_version=".OMB_VERSION_01;
+ }
+ } catch (OAuthException $e) {
+ common_server_error($e->getMessage());
+ return;
+ }
}
}