开发者

How do I use the iTunes Authentication Class?

I have a PHP script that will authenticate a user. This will grab all the reliant info for iTunes U. The transfer script they provide is written in Perl or Java. I would prefer to use PHP. I found an iTunes Authentication Class.

I am having trouble figuri开发者_JAVA百科ng out how to actually use this to pass the authentication string to iTunes to authenticate the user with the iTunes U server. I have the Perl version working great, except that it's static. There is no Web interface or LDAP integration.

Does anyone have an idea?


you can try PHP-iTunes-API. i found this API in here http://dailysyntax.com/a-really-easy-php-class-for-reading-the-itunes-api/


I don't speak PHP, so I cannot help with the specific syntax. I did not test the instructions, they are merely derived from messing with the Perl code and reading the PHP library code.

  1. Instantiate the class and set the attributes name (display name, e.g. Jane Doe), email (email address, e.g. janedoe@example.edu), netid (user name, e.g. jdoe), userid (user identifier, e.g. 42), sharedSecret (e.g. STRINGOFTHIRTYTWOLETTERSORDIGITS), siteURL (e.g. https://deimos.apple.com/WebObjects/Core.woa/Browse/example.edu).
  2. Call the method invokeAction with no parameters. On success returns true and prints the auth response body. On failure returns false and prints the HTTP library error.

Ask for further support at http://omega1.uww.edu/itunesu/.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜