JRSmile Posted March 24, 2009 Share Posted March 24, 2009 (edited) Hi there, currently im writing a little UDF for the lastfm protocol: http://www.last.fm/api/introi managed to figure out login and session handling, now have just to wrap all method calls into autoit functions, here the function list and what i have implemented so far: * Album o album.addTags o album.getInfo o album.getTags o album.removeTag o album.search * Artist o artist.addTags o artist.getEvents o artist.getImages o artist.getInfo o artist.getShouts o artist.getSimilar o artist.getTags o artist.getTopAlbums o artist.getTopFans o artist.getTopTags o artist.getTopTracks o artist.removeTag o artist.search o artist.share o artist.shout * Auth o auth.getMobileSession (done) o auth.getSession o auth.getToken o auth.getWebSession * Event o event.attend o event.getAttendees o event.getInfo o event.getShouts o event.share o event.shout * Geo o geo.getEvents o geo.getTopArtists o geo.getTopTracks * Group o group.getMembers o group.getWeeklyAlbumChart o group.getWeeklyArtistChart o group.getWeeklyChartList o group.getWeeklyTrackChart * Library o library.addAlbum o library.addArtist o library.addTrack o library.getAlbums o library.getArtists o library.getTracks * Playlist o playlist.addTrack o playlist.create o playlist.fetch * Tag o tag.getSimilar o tag.getTopAlbums o tag.getTopArtists o tag.getTopTags o tag.getTopTracks o tag.getWeeklyArtistChart o tag.getWeeklyChartList o tag.search * Tasteometer o tasteometer.compare * Track o track.addTags o track.ban o track.getInfo o track.getSimilar o track.getTags o track.getTopFans o track.getTopTags o track.love o track.removeTag o track.search o track.share * User o user.getEvents (done) o user.getFriends (done) o user.getInfo (done) o user.getLovedTracks (done) o user.getNeighbours (done) o user.getPastEvents o user.getPlaylists (done) o user.getRecentTracks o user.getRecommendedArtists o user.getRecommendedEvents o user.getShouts o user.getTopAlbums o user.getTopArtists o user.getTopTags o user.getTopTracks o user.getWeeklyAlbumChart o user.getWeeklyArtistChart o user.getWeeklyChartList o user.getWeeklyTrackChart o user.shout * Venue o venue.getEvents o venue.getPastEvents o venue.search__________________________________________________________________________and here the udf: [previous downloads: 51]lastudf.au3 Edited April 21, 2009 by JRSmile $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
JRSmile Posted March 24, 2009 Author Share Posted March 24, 2009 (edited) Changelog:(0.0.0.4)*add: added header information for automatic helpfile generation (not yet correct)(0.0.0.3)*fix: __lastfm_md5 ==> Local Const ==> Local Edited April 1, 2009 by JRSmile $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
jvanegmond Posted March 24, 2009 Share Posted March 24, 2009 Give it a better name than LastUDF. Last.fm UDF sounds appropriate. github.com/jvanegmond Link to comment Share on other sites More sharing options...
monoceres Posted March 24, 2009 Share Posted March 24, 2009 Very interesting stuff! I have looked at the api several times but never really took the time to write anything. Is scrobbling support on the way? Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
JRSmile Posted March 24, 2009 Author Share Posted March 24, 2009 (edited) sure, scrobbling will be implemented as well unfortunately im looking for an easy way (with not many includes) to send http post requests. They are needed to do any kind if "writing" to the api :-( Edit: found a way added it to the standalone version, until now only xmldomwrapper is needed, all other funcs have been slightly modified to fit the need of the udf , so the standart udfs i included previously were removed and can no longer be used:-) Best regards, Jr Edited March 25, 2009 by JRSmile $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
ChaosCookie Posted March 29, 2009 Share Posted March 29, 2009 Are you still writing on it? Cant wait for the other stuff to come out =p Link to comment Share on other sites More sharing options...
JRSmile Posted March 29, 2009 Author Share Posted March 29, 2009 jupp, will take some time, got my final exams next week so can be a bit delayed. $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
JRSmile Posted April 1, 2009 Author Share Posted April 1, 2009 (edited) i have really no time to work on it during my exam time if anyone is willed to help out the next two weeks, this would be perfectly. edit: added the UDF style headers to be able to autogenerate the help files. (no examples yet) Edited April 1, 2009 by JRSmile $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
sheeva Posted April 28, 2009 Share Posted April 28, 2009 Look's very interesting but, can you post a small examples of code using your udf especially for login. thank's Nice job ! Link to comment Share on other sites More sharing options...
JRSmile Posted April 28, 2009 Author Share Posted April 28, 2009 sorry so far no examples, i think i have to reinvent everything because the salting has changed and i have to adapt my functions to that, in addition im currently figuring out how to do every call in one function and analyse it with the api named once so no more error handling for every function i write. if you want to start try using the authgetmobilesession function first, if this works let me know.:-) best regards, JR. $a=StringSplit("547275737420796F757220546563686E6F6C75737421","") For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4) Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI" Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile; MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-) Link to comment Share on other sites More sharing options...
zeffy Posted July 5, 2010 Share Posted July 5, 2010 Has there been any more development on this? Link to comment Share on other sites More sharing options...
ghetek Posted July 16, 2010 Share Posted July 16, 2010 Just found this today. great project! i hope you are still developing this. Link to comment Share on other sites More sharing options...
Zibit Posted July 17, 2010 Share Posted July 17, 2010 Would take me a while to check ALL of the commands though great UDF 5 stars Useful in many ways Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now