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

Need clarification on which tasks use API calls #4976

Closed
avexus opened this issue Aug 31, 2016 · 5 comments
Closed

Need clarification on which tasks use API calls #4976

avexus opened this issue Aug 31, 2016 · 5 comments

Comments

@avexus
Copy link

avexus commented Aug 31, 2016

I'm guessing "EvolvePokemon", "TransferPokemon", "RecycleItems", etc use API calls, but how about
"UpdateLiveInventory", "UpdateLiveStats" etc? Do these only pull information from client side and don't have to make calls to server?

Maybe a comment on conf file will be nice. And also in documentation.

@Gobberwart
Copy link
Contributor

It depends what hour of which day you ask. We're (I'm??) in the process of removing as many api calls as possible, so this is highly variable.

Don't see any need to document it.

@Gobberwart
Copy link
Contributor

This isn't an issue. If knowing which tasks make api calls is important, check the source.

@avexus
Copy link
Author

avexus commented Aug 31, 2016

i'll do that. What do API calls look like? Give me 1 or 2 examples, so I can get started. Thank you @Gobberwart

@rawgni
Copy link
Contributor

rawgni commented Aug 31, 2016

@avexus it starts with self.bot.api

@Gobberwart
Copy link
Contributor

@avexus Sometimes just self.api, eg.

From init.py line 1329
self.last_map_object = self.api.get_map_objects(

From metrics.py line 103
request = self.bot.api.create_request()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants