cd <binary-installation-directory>/indivo_client_java-1.x/examples

simple PHA example, without oauth dance

To compile this example: ./make_example1.sh

To run this example: ./run_example1.sh
This assumes indivo_server is running on localhost, port 8080. If not, modify the script before running.

oauth dance example

requires Tomcat or similar Java app server

If indivo_server is not running on localhost:8000, or indivo_ui_server is not running on localhost:80, edit the relevant init-param values in examples/src/web.xml

If you are not using the default indivo_data.xml, you may need to change the oauth credentials in examples/src/web.xml.

To compile and build example:make_example_2_war.sh

install war

copy TestClientServlet.war to <tomcat-installation-directory>/webapps, or eqivalent for other-than-tomcat app server.
point your browser to: http://localhost:8080/TestClientServlet/IndivoClientJavaOAuthTester
enter record id of a valid record in indivo
You will be prompted to log in to indivo (unless you already have an active session). Log in as owner of the record who's id you just entered
Unless labs@apps.indivo.org is already enabled on the record, you will be prompted to authorize
You should then receive a token and secret, and authorization is complete