can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[ljcom] r11127: OPSC-397: Implement LJ JS API osapi.peop...

Committer: dpetrov
OPSC-397: Implement LJ JS API osapi.people service functions
U   trunk/htdocs/js/apps/livejournal/config/client.js
U   trunk/htdocs/js/apps/livejournal/config/container.js
Modified: trunk/htdocs/js/apps/livejournal/config/client.js
===================================================================
--- trunk/htdocs/js/apps/livejournal/config/client.js	2011-10-31 07:19:51 UTC (rev 11126)
+++ trunk/htdocs/js/apps/livejournal/config/client.js	2011-10-31 07:27:04 UTC (rev 11127)
@@ -3,7 +3,11 @@
 	function initConfig() {
 		gadgets.config.init({
 			rpc: {},
-			views: gadgets.config.views
+			views: gadgets.config.views,
+			'osapi.services': {
+				'gadgets.rpc': ['people.get', 'people.getViewer',
+					'people.getViewerFriends', 'people.getOwner', 'people.getOwnerFriends']
+			}
 		});
 	}
 

Modified: trunk/htdocs/js/apps/livejournal/config/container.js
===================================================================
--- trunk/htdocs/js/apps/livejournal/config/container.js	2011-10-31 07:19:51 UTC (rev 11126)
+++ trunk/htdocs/js/apps/livejournal/config/container.js	2011-10-31 07:27:04 UTC (rev 11127)
@@ -5,7 +5,11 @@
 			rpc: {
 				parentRelayUrl: ''
 			},
-			views: gadgets.config.views
+			views: gadgets.config.views,
+			'osapi.services': {
+				'http://%host%/__api_endpoint/os/1.0/rpc': ['people.get', 'people.getViewer',
+					'people.getViewerFriends', 'people.getOwner', 'people.getOwnerFriends']
+			}
 		});
 	}
 

Tags: can3p, dpetrov, js, ljcom
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments