iTunes U PHP Authentication Script

Written by Aaron Axelsen <axelsena at uww dot edu>
University of Wisconsin - Whitewater

This class is based on the provided connection samples from Apple.

Requirements:

PHP:

Releases:

  • 1.2 Release - 10/29/2007 Download -- View Source
    • Added config function - This will allow the user to pass in an associative array of keys and values which will be used to configure the class. Invalid keys which are passed in will trigger a E_USER_WARNING message.
      Example:
      $itunesConfig['roles']['administrator'] = 'Administrator@urn:mace:itunesu.com:sites:example.edu';
      $itunesConfig['roles']['student'] = 'Student@urn:mace:itunesu.com:sites:example.edu:classes';
      $itunesConfig['roles']['instructor'] = 'Instructor@urn:mace:itunesu.com:sites:example.edu:classes';
      $itunesConfig['siteURL'] = 'https://deimos.apple.com/WebObjects/Core.woa/Browse/example.edu';
      $itunesConfig['debugSuffix'] = '/abc1234';
      $itunesConfig['sharedSecret'] = 'STRINGOFTHIRTYTWOLETTERSORDIGITS';
      
      // Option 1	
      $itunes = new itunes($itunesConfig);
      
      // Option 2	
      $itunes = new itunes();
      $itunes->config($itunesConfig);
      	
    • Changed credentials setup - As part of the config function, roles are now contained in an associatve array of keys and values. To add credentials, call the newly created add() function - $itunes->add('credentialname','uniquevalue');
    • addStudentCredential, addInstructorCredential, and addAdminCredential are now deprecated. Please convert your applications to use the new add() function
    • Improved configuration option notes and internal script documentation
    • Added function to setup DirectURL (No longer need to specify config variable) - used for launching iTunes U directly into a course
    • Added back pear functions if hash and curl are not available
    • Added setupExample() function - this will configure the class with the credentials provided by Apple to authenticate into their example instance
  • 1.12 Release - 7/10/2007 Download -- Including D2L Integration
    • Added D2L Integration javascript file
    • Added D2L example widget source code
    • Added D2L-iTunes U authentication script
  • 1.1 Release - 3/27/2007 View Source
    • Replaced Pear Request with Curl - suggested by Ryan Pharis (Texas Tech)
    • Replaced Pear Message with hash_hmac - suggested by Ryan Pharis (Texas Tech)
    • Added userid field to setUser function
  • 1.0 Release - 10/6/2006 View Source
    • Added debug option to easily enable debugging
    • Fixed add credentials function
    • API Upload Support - Experimental
    • If handle is set upon authenticating, user will be directed to that location
  • Beta Release - 7/5/2006 PHP5 Source PHP4 Source
    • Basic authentication possible, waiting on apple to release more iTunes U functionality before continuing.

Pear Version

Brett Beiber (University of Nebraska-Lincoln) has created a Pear package for the iTunes U authentication script.

Pear Channel - http://pear.unl.edu

pear channel-discover pear.unl.edu
pear install UNL_iTunesU-beta