OpenSocial Java Client API Source
Table of Contents
- Package Contents
- Requirements
- Installation
PACKAGE CONTENTS:
OpenSocial Java client provides source code and libraries for interacting with
server-to-server APIs for various OpenSocial providers. This package includes:
- Java client source under "opensocial/java/src"
- Java client dependencies under "opensocial/java/lib"
- Java client demo applications under "opensocial/java/demos"
- Android client source under "opensocial/android/src"
- Android client demo applications under "opensocial/android/demos"
REQUIREMENTS:
OpenSocial Java Client and Android Client depend on the following external
libraries on top of a standard Java installation.
- Java Development Kit version 5.0 or greater. Latest version of JDK
available for download from http://java.sun.com.
- commons-codec-1.3.jar -- Apache Commons codec library for Base64 encoding
and decoding. Latest version available for download from
http://commons.apache.org/codec/.
- json_simple-1.1.jar -- Java toolkit for JSON encoding and decoding. Source
code available for download at http://code.google.com/p/json-simple/.
- junit-4.5.jar -- Java unit testing framework necessary for building and
running test classes. Latest version available for download from
http://www.junit.org/.
- oauth-20090825.jar -- OAuth signing and verification library. Latest
version available for download from http://code.google.com/p/oauth/.
INSTALLATION:
- Check out source code from Subversion repository and navigate to the new
opensocial-java-client folder.
- To recompile source files, execute the default ant target by typing "ant"
at the command line from the java directory.
- To generate Java archive file for OpenSocial Client, execute the ant
"dist" target from the java directory. The JAR is built in java/dist.
- To generate Javadocs for OpenSocial Client, execute the ant "javadoc"
target from the java directory. Docs are regenerated in java/docs.
- To run the Android demo application:
a) First download the Android SDK from http://developer.android.com/sdk/.
b) Modify the "sdk-location" property in android/build.properties to point
to the location of your local SDK.
c) Modify the "sdk-location" property in the build.properties file of the
demo application under android/demos/ to point to the location of your
local SDK.
d) Launch the Android emulator.
e) Load the demo application by entering "ant install" at the command line
after changing to the from the demo directory.
f) Uninstall and reinstall the application by using the "uninstall" and
"reinstall" ant targets respectively.