oreporan / wePlayMin

WePlay - the social football managing app
0 stars 1 forks source link

Add to Server - Get my leagues by my client id #38

Closed nirla closed 8 years ago

nirla commented 8 years ago

in order to display all of 'my leagues' when entering leagues tab there must be way to get all the leagues the user takes part in. something like 'getMyLeagues(clientId)'

I think it will be best to return an array of league objects (anyway it wont be too big).

what do you think ?

oreporan commented 8 years ago

Well getUser gets you an array of your leagueIds. Then getLeague gets you the leagueObject. I tried to avoid doing APIs that get/set things based on "my"

On 7 בדצמ 2015, at 23:09, nirla notifications@github.com wrote:

in order to display all of 'my leagues' when entering leagues tab there must be way to get all the leagues the user takes part in. something like 'getMyLeagues(clientId)'

I think it will be best to return an array of league objects (anyway it wont be too big).

what do you think ?

— Reply to this email directly or view it on GitHub.

nirla commented 8 years ago

ok makes sense... I'll do it through getUser

Sent from my iPhone

On 8 בדצמ׳ 2015, at 3:13, oreporan notifications@github.com wrote:

Well getUser gets you an array of your leagueIds. Then getLeague gets you the leagueObject. I tried to avoid doing APIs that get/set things based on "my"

On 7 בדצמ 2015, at 23:09, nirla notifications@github.com wrote:

in order to display all of 'my leagues' when entering leagues tab there must be way to get all the leagues the user takes part in. something like 'getMyLeagues(clientId)'

I think it will be best to return an array of league objects (anyway it wont be too big).

what do you think ?

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.