http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94225
Revision: 94225
Author: neilk
Date: 2011-08-11 02:41:01 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
the vi API prefix is already taken by some video apis... using id instead
Modified Paths:
--------------
branches/extensions-realtime/IdentityApi/PROTOCOL
branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
branches/extensions-realtime/IdentityApi/api/ApiQueryVerifyIdentity.php
Modified: branches/extensions-realtime/IdentityApi/PROTOCOL
===================================================================
--- branches/extensions-realtime/IdentityApi/PROTOCOL 2011-08-11 02:28:39 UTC
(rev 94224)
+++ branches/extensions-realtime/IdentityApi/PROTOCOL 2011-08-11 02:41:01 UTC
(rev 94225)
@@ -43,15 +43,15 @@
* The Chat service should then use those values to construct its
identity verification API call. In particular
- note that it uses the API URL again.
+ note that it uses the API URL again. Also note that here the
arguments are namespaced so we say "idtoken" not "token".
CHAT SERVICE -> WIKI.
http://wiki.ivy.local/w/api.php?
action = verifyidentity
- & viuser = Mercury
- & vitoken=fafa55405eb0e0336d12135f7f14c9df
- & viextras =
cookie|wgServer|wgArticlePath|isLoggedIn|username
+ & iduser = Mercury
+ & idtoken=fafa55405eb0e0336d12135f7f14c9df
+ & idextras =
cookie|wgServer|wgArticlePath|isLoggedIn|username
& format=json
The extras are information that this chat server might want to
know. They should all be self-explanatory,
Modified: branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
===================================================================
--- branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
2011-08-11 02:28:39 UTC (rev 94224)
+++ branches/extensions-realtime/IdentityApi/api/ApiQueryIdentity.php
2011-08-11 02:41:01 UTC (rev 94225)
@@ -11,7 +11,7 @@
*/
class ApiQueryIdentity extends ApiQueryBase {
public function __construct( $main, $action ) {
- parent::__construct( $main, $action, 'vi' );
+ parent::__construct( $main, $action, 'id' );
}
/**
Modified:
branches/extensions-realtime/IdentityApi/api/ApiQueryVerifyIdentity.php
===================================================================
--- branches/extensions-realtime/IdentityApi/api/ApiQueryVerifyIdentity.php
2011-08-11 02:28:39 UTC (rev 94224)
+++ branches/extensions-realtime/IdentityApi/api/ApiQueryVerifyIdentity.php
2011-08-11 02:41:01 UTC (rev 94225)
@@ -11,7 +11,7 @@
*/
class ApiQueryVerifyIdentity extends ApiQueryBase {
public function __construct( $main, $action ) {
- parent::__construct( $main, $action, 'vi' );
+ parent::__construct( $main, $action, 'id' );
}
/**
@@ -78,7 +78,7 @@
protected function getExamples() {
return array (
-
'api.php?action=verifyidentity&viuser=NeilK&vitoken=abcdef123456&viextras=avatarSrc|chat|cookie|isStaff|username',
+
'api.php?action=verifyidentity&iduser=NeilK&idtoken=abcdef123456&idextras=avatarSrc|chat|cookie|isStaff|username',
);
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs