Jump to content

LastUDF


JRSmile
 Share

Recommended Posts

Posted Image

Hi there, currently im writing a little UDF for the lastfm protocol: http://www.last.fm/api/intro

i 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 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

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 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

sure, scrobbling will be implemented as well :D

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 :o

Edited 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

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

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 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

  • 4 weeks later...

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

  • 1 year later...
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...