We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Running the README example simply just don't work.
To Reproduce
from aiograpi import Client ACCOUNT_USERNAME = "myuser" ACCOUNT_PASSWORD = "mypassword" cl = Client() await cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD) user_id = await cl.user_id_from_username(ACCOUNT_USERNAME) medias = await cl.user_medias(user_id, 20)
Traceback
Expected behavior A working Script
Screenshots Show above...
Desktop (please complete the following information):
Additional context I'm just getting familiar with the API so a more descriptive error would be very beneficial.
The text was updated successfully, but these errors were encountered:
You need to do something like this, because async functionality needs to be in an async function:
import asyncio import aiograpi async def test(): ACCOUNT_USERNAME = "myuser" ACCOUNT_PASSWORD = "mypassword" cl = Client() await cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD) user_id = await cl.user_id_from_username(ACCOUNT_USERNAME) medias = await cl.user_medias(user_id, 20) async def main(): await test() if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(main())
Sorry, something went wrong.
No branches or pull requests
Try HikerAPI SaaS with a free trial https://hikerapi.com/p/KhMxYMSn
Describe the bug
Running the README example simply just don't work.
To Reproduce
Traceback
Expected behavior
A working Script
Screenshots
Show above...
Desktop (please complete the following information):
Additional context
I'm just getting familiar with the API so a more descriptive error would be very beneficial.
The text was updated successfully, but these errors were encountered: