Committer: dpetrov
OPSC-397: Implement LJ JS API osapi.people service functionsU 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'] + } }); }