Advanced Search »
OpenStrands Development

OpenStrands Development


'Developer's forum for the OpenStrands web services API. Give us your feedback, and let us know how to make this product better.'

Access Type: Public
Join Condition: Open
URL: http://www.mystrands.com/group/OpenStrands_Deve

Views: 4939

Post

PHP5 API Version 0.1

~ August 5, 2007 at 14:04 by vollmerk (Views: 346)

Heya all, I've just polished up the first 'version' of a PHP interface for OpenStrands. It currently has all search, lookup and recommend functions written out. The error reporting, handling definitely leaves something to be desired, but hey work in progress.

You can find it in Ampache's public SVN, here
https://svn.ampache.org/trunk/modules/infotools/openstrands.class.php

I will continue to update the above linked class as I get time. If anyone wants to add a function or two I would love to get a patch back so that everyone can use it.

Currently the class forces a valid username,password,authtoken I plan on changing that eventually... Also I'm using the hexPass=???? for password passing so the password sent to this API must be a MD5 hash of the users password.

Questions, comments, patches send to mystrands@ampache.org
-Karl Vollmer
Ampache Lead Developer


Comments

comment by
vollmerk ~ August 5, 2007 at 18:59
*cough* already did an update. Added a public static function called 'set_auth_token($token)' that can be used to change/set the auth_token if you don't want to hardcode it into the class. This is how I populate the authtoken in Ampache from the users config.
comment by
vollmerk ~ August 6, 2007 at 21:08
Added in the Match functions this evening, also a note on the PDF it states that Search Albums is

"Searches for Albums in the MyStrands catalog matching the given search text"

This means 'any' value of the album be it artist, album, etc. If you want exact matches on album + artist (as I wanted) you want to use the matchAlbum functionality.
comment by
vollmerk ~ August 8, 2007 at 23:19
Yet another update, added optional alias pass on the /lookup/??? functions. If an alias is passed, and mystrands has it, a UserPurchaseURI will be returned.

Comments

powered by OpenStrands