Activity Not Available
0
I Use This!

Project Summary

Analyzed 3 months ago. based on code collected 3 months ago.

OpenSocial Aptana Jaxer Client Libraryopensocial-jaxer-client is OS API based OpenSocial Client Library for Server Side JavaScript on Aptana Jaxer.

ExamplesThe current release supports only fcauth of Google FrinedConnet.

osapi.init({
rpcUrl: 'http://friendconnect.gmodules.com/ps/api',
fcauth: Jaxer.Util.Cookie.get('fcauth03382920006806842951')
});

/*
* osapi.people
*/
var viewer = osapi.people.getViewer().execute();

Jaxer.Log.info('Your name is ' + viewer.displayName);

var viewer = osapi.people.getViewer({
fields: ['profileUrl', 'thumbnailUrl']
}).execute();

Jaxer.Log.info('Your profile URL is ' + viewer.profileUrl);
Jaxer.Log.info('Your thumbnail URL is ' + viewer.thumbnailUrl);

/*
* osapi.appdata
*/
var r = osapi.appdata.update({
userId: '@viewer', data: { gifts: 'a crazed monkey' }
}).execute();

var data = osapi.appdata.get({
userId: '@viewer', keys: ['gifts']
}).execute();

Jaxer.Log.info('AppData gifts is ' + data[viewer.id].gifts);

var r = osapi.appdata.deleteData({
userId: '@viewer', keys: ['gifts']
}).execute();

/*
* osapi.activities
*/
var r = osapi.activities.create({
userId: '@viewer', activity: {
title: 'Hello!', url: 'http://example.com/'
}
}).execute();

var list = osapi.activities.get({
userId: '@viewer'
}).execute();

list.forEach(function(data) {
Jaxer.Log.info('Activity title is ' + data.title);
Jaxer.Log.info('Activity URL is ' + data.url);
});

/*
* osapi.batch
*/
var batch = osapi.newBatch()
.add('viewer', osapi.people.getViewer())
.add('data', osapi.appdata.get({ userId: '@viewer' }))
.execute();

Jaxer.Log.info('Viewer id is ' + batch.viewer.id);
Jaxer.Log.info('Viewer name is ' + batch.viewer.displayName);
Jaxer.Log.info('Viewer thumbnail URL is ' + batch.viewer.thumbnailUrl);
Jaxer.Log.info('AppData gifts is ' + batch.data[batch.viewer.id].gifts);

Changelog0.1.0This release supports osapi.appdata and osapi.activities.

osapi.appdata osapi.activities 0.0.1This release supports osapi.batch.

osapi.batch 0.0.0Startup of opensocial-jaxer-client project. This release supports only fcauth and osapi.people of Google FriendConnect.

fcauth of Google FriendConnect osapi osapi.base osapi.util osapi.people DownloadsThe last version is opensocial-jaxer-client-0.1.0. You can download it from the featured downloads box right on this page.

Also, you could use the SVN version to get the most actual code:

$ svn checkout http://opensocial-jaxer-client.googlecode.com/svn/trunk/ opensocial-jaxer-client-read-only

Share

In a Nutshell, opensocial-jaxer-client...

Activity

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Community

Ratings

Be the first to rate this project
 
Click to add your rating
   Spinner f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c
 
Review this Project!