| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Integration with iWVU, an iPhone application

Page history last edited by PBworks 13 years, 8 months ago

This documentation is for version 2 of Mobile Web OSP.

 

During the summer of 2009 West Virginia University student Jared Crawford created an iPhone application for WVU called iWVU. iWVU has been open sourced and is available on GitHub. Version 2 of Mobile Web OSP integrates with iWVU to provide it directory and calendar data via JSON. To use Mobile Web OSP with iWVU you can do the following:

 

Requirements

You will need to make sure your install of PHP supports PEAR so you can use the included JSON library.

 

Configure Directory Support

For LDAP directories that do not allow off-campus requests iWVU can use Mobile Web OSP to proxy requests for it to make the directory available to anyone and at anytime. The following is how you configure directory support for iWVU:

 

  1. Create a secret word that will be shared between the iPhone app and Mobile Web OSP. This offers a limited amount of security for the proxy. A timestamp will be added in the future for more robust security.
  2. Navigate to the root of your Mobile Web OSP install
  3. Navigate to 'web/people/json'
  4. Open 'index.php'
  5. Edit the variable $secret_word on line #23 to be your secret word.
  6. Save the file.
  7. Open iWVU in Xcode.
  8. Navigate to 'Features/Directory/Model/WVUDirectorySearch.m' and open it.

  9. Edit line #58 to reflect either the production URL for your site or the test URL for your site.

  10. Add a file named PrivateKey.plist that contains your secret word from step #1 into 'Resources' at the base of the iWVU project. A copy of the plist file is on GitHub.
  11. You should be done. 

 

Configure Calendar Support

To make sure that iWVU uses the same calendar data as Mobile Web OSP and your main calendar you can use Mobile Web OSP to populate data in iWVU. The following is how you configure calendar support for iWVU:

 

  1. Open iWVU in Xcode
  2. Navigate to 'Features/Calendar/CalendarViewController.m' and open it.
  3. Edit line #100 to reflect either the production URL for your site or the test URL for your site.
  4. Open the CampusData.sqlite3 file in 'Resources'
  5. Modify the data in the 'Calendars' table. The URL field for each calendar should match the key found in the '/web/calendar/data/data.inc.php' file in Mobile Web OSP so that iWVU can properly request the data.
  6. You should be done.

 

Comments (0)

You don't have permission to comment on this page.