alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
317 stars 97 forks source link

Getting the fanned/fans list for a specific user. #210

Closed omgyeti closed 11 years ago

omgyeti commented 11 years ago

Not an issue but a request/question. With one of the new updates TT.fm added the ability to see the fans/fanned of other users. What is the chance that could be added to the ttapi?

alaingilbert commented 11 years ago

The chances are greater now ! In fact I'm living in Canada, and TT.fm is not available in my country, so when they update the website, I need to setup a proxy if I want to see it... So most of the time, I'm not aware of the new features of tt.fm, and I need someone like you to keep me updated :P

Short answer: I'll see what I can do (read : should be there in the next couple of day)

omgyeti commented 11 years ago

Oh, cool. I if it helps, looking at the tt.fm js I found these... api calls? user.get_fan_of user.get_buddies user.get_fan_info user.get_fan_of_info (I'm not a js programmer, but learning, so I dont know if those will be helpful )

alaingilbert commented 11 years ago

Sure thanks ! If you knew the parameters you could almost make a pull request ! https://github.com/alaingilbert/Turntable-API/blob/master/src/bot.coffee#L456-L458 Most of the time, it's 3 lines by function :P

ghost commented 11 years ago

Another feature they added was the zooming feature.

technobly commented 11 years ago

Another feature they added was the zooming feature.

Which doesn't affect the TTAPI, but is semi-useful... more of a pain with the latest memory leak issues in the browser though!

omgyeti commented 11 years ago

Well I was not able to get git to work. Having no clue as to what I'm doing may have a role in that xD But here is what I found if someone else wants to take a crack at it.

    showFans: function (e) {
        var t = this.user,
            i = "user.get_fan_info";
        new r({
            user: t,
            profileid: e,
            apiString: i,
            titleString: "Fans"
        })
    },
    showFanOfs: function (e) {
        var t = this.user,
            i = "user.get_fan_of_info";
        new r({
            user: t,
            profileid: e,
            apiString: i,
            titleString: "Fanned"
        })
    },
ghost commented 11 years ago

Git isn't working for me either

omgyeti commented 11 years ago

What do you mean?

technobly commented 11 years ago

Derp

omgyeti commented 11 years ago

@alaingilbert @DubbyTT So, "user.get_fan_of" just needs to have a variable for a userid.

omgyeti commented 11 years ago

Well!! I got something to work? I can get fan ofs :D

omgyeti commented 11 years ago

Closing this as i know what to do.