Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transactions #132

Open
todsac opened this issue Sep 6, 2019 · 4 comments
Open

Transactions #132

todsac opened this issue Sep 6, 2019 · 4 comments
Labels
feature request 🚀 New feature or request

Comments

@todsac
Copy link

todsac commented Sep 6, 2019

Is it possible to get transactions (add / drop) via the API?

@rektdeckard
Copy link

Came here for this! the old API had a recentActivity param that returned player transactions and pending trades. Any word on this?

@rektdeckard
Copy link

The current API has this route that seems to return the transactions we're looking for, albeit in a very inscrutable format:

https://fantasy.espn.com/apis/v3/games/ffl/seasons/2019/segments/0/leagues/<LEAGUE_ID>?view=mPendingTransactions

Requires dozens of follow-up requests to get the player names, positions, team name/owner... Who the heck designed their API?

@mkreiser
Copy link
Owner

Who the heck designed their API?

@rektdeckard This keeps me up at night

@mkreiser
Copy link
Owner

mkreiser commented Oct 6, 2019

@rektdeckard I checked out that route and the recent activity webpage. The route you've specified was not returning any transaction data.

I tried spying on the recent activity page and matched up this route to the data: https://fantasy.espn.com/apis/v3/games/ffl/seasons/2019/segments/0/leagues/<LEAGUE_ID>/communication/?view=kona_league_communication. However, this route is batshit and maps out each transaction (called a topic) to some UUIDs that are coming from somewhere. I have no idea where these are getting matched up.

Since transactions are a bit crazy, I'm going to push transactions off for now

@mkreiser mkreiser added the feature request 🚀 New feature or request label Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants