IBM Social Business Toolkit Evaluation

For building social apps and extending IBM Collaboration Solutions.
IBM, Social Business Toolkit @ibmsbt
Update 2013-10-19: The contents of this post are outdated since the Social Business Toolkit evolved quite a bit from it’s earliest versions. Post online for reference only. Please go and checkout the official Social Business Toolkit website.
How-to setup the development environment, complete the OAuth 2.0 process and access APIs from SmartCloud for Social Business.
Create an IBM Social Business SmartCloud Trial account.
Download SBTKDeveloperAppPackage.zip (v01.00.00)from developerWorks.
Download and install Eclipse IDE for Java EE Developers.
Download and install Tomcat 7.x.
Create an application Server Runtime Environment for Apache Tomcat v7.0 (Eclipse Apache Tomcat Server Runtime Enviroment setup TUTORIAL).
Enable/ install and configure SSL support on Tomcat (Apache Tomcat 7 SSL configuration HOW-TO).
Prepare the Certificate Keystore and specify a password value of “changeit”:
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
Uncomment the SSL HTTP/1.1 Connector on port 8443 in server.xml and add attributes keystoreFile and keystorePass:
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="${user.home}/.keystore" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />
Optional - add <security-constraint/> in SBTKDeveloperApp application web.xml for Tomcat to redirect the requests to the SSL port if you try to use HTTP:
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Content</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Create an Eclipse project for the sample application by importing the “Existing Projects into Workspace” and then choosing “Select archive file”: SBTKDeveloperAppProject.zip
Register the application with the SmartCloud account ([Administration / Manage Organization / Internal Apps], button [Register App]) providing the following properties:
App Name: SBTKDeveloperApp
Enable API Access via OAuth 2.0 Web Server Flow: yes
Access Grant Duration: 90 days
Callback URL: https://localhost:8443/SBTKDeveloperApp/Step2_A2_obtainAuthorization
Complete the OAuth 2.0 process:
1. Register application to obtain id, secret, uri
2. Get Authorization Code
3. Exchange Authorization code for Access and Refresh tokens.
4. Use the Access token when calling the APIs.
5. Refresh Access token when it expires using the Refresh token.
Tip: You can disable Developer Mode from the application later on
Enter the application and access APIs from SmartCloud for Social Business.