adrienjoly / npm-openwhyd-api-client

A simple Node.js API client for Openwhyd.org.
https://www.npmjs.com/package/openwhyd-api-client
0 stars 1 forks source link

Post Tracks to Whyd? #1

Closed Marinlemaignan closed 7 years ago

Marinlemaignan commented 7 years ago

Hey! I didn't know where to ask but that kinda seemed the right place... Basically what i am trying to achieve is to forward posts' links from a music facebook group ( so this would be some youtube, soundcloud, bandcamp, etc links.. so i figured out i would use whyd to store all this, and build some awesome playlists) Do you think it'd be possible to post some links fetched from that fb group into a whyd page/playlist using this? Or maybe you know the route i need to use to post and i'll just figure out the rest.. Otherwise i'll go around building a bot with capybara.. Kind Regards, Marin

adrienjoly commented 7 years ago

hi marin!

whyd has become an open-source project, hosted at openwhyd.org

it does not provide yet an API for that, but I'm happy to discuss it if you're willing to contribute it. (i.e. propose a pull request to openwhyd's back-end source code)

you can find the current API documentation there: https://github.com/openwhyd/openwhyd/blob/master/docs/whydJS-json-api.md

can you tell me more about what kind of transfer are you trying to do? one-shot import? or continuous synchronization? and how many tracks are we talking about?

whatever you're intending to do, please do your best to not put too much charge on openwhyd's server at once :-)

Marinlemaignan commented 7 years ago

Actually... i had an idea and figured it out already: https://openwhyd.org'/post?v=2&embed=&title=&refUrl=&refTtl=&text= (from oyur Add to Whyd widget)

adrienjoly commented 7 years ago

your solution is not fully automatic (it required user interaction), but it's a nice catch :-)

Marinlemaignan commented 7 years ago

Thank you so much for your quick answer and the api documentation file!! Don't worry that'd be a simple import of a few thousands urls, i'll code my script with a sleep in it's insert loop, so don't worry i'm not gonna be ddos-ing you! According to what i could have read so far i'm able to do lots and lots of things! if you want to check us out also to make sure we look like acceptable people we're at: https://openwhyd.org/echangedeson (ps: we're french and it sounds like you do too)

Marinlemaignan commented 7 years ago

and yes i had spotted those WhydAPI.prototype.login and WhydAPI.prototype.logout methods from your old code ; ) thank you so much

Marinlemaignan commented 7 years ago

If i have enough time i'd be happy to participate in helping with whyd, maybe a ruby client, for those like me who use and love ruby..!

adrienjoly commented 7 years ago

you're welcome! and thanks for having shared your profile url! someone who listens to touché amoré cannot be a bad person :-)

I guess you understood that npm-whyd is to be used from a nodejs server. feel free to fork and adapt it to openwhyd, and/or make an alternative for ruby! then, if you want, and if it's well made, I can happily integrate it to openwhyd's official github profile! :-)

have a good one!

Le ven. 2 déc. 2016 à 16:42, Marin le Maignan notifications@github.com a écrit :

and yes i had spotted those WhydAPI.prototype.login and WhydAPI.prototype.logout methods from your old code ; ) thank you so much

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/adrienjoly/npm-whyd/issues/1#issuecomment-264483835, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgdRawqqCfMhVqnQmnAKCEglEFPmUT1ks5rEDxUgaJpZM4LCp8v .

-- Adrien Joly adrienjoly.com/now

Marinlemaignan commented 7 years ago

Thank you so much for the documentation! It's perfectly working!