https://linen.dev logo
how to connect any email account? is there any cod...
# 🖥│support-forum
c
Hi Aarish, You an refer to this documentation to initiate a connection : Also, could you provide some context on how you planning to connect the account(SDK, some specific framework, etcc).
c
Looks like your
user_id
is empty, could you populate it and lmk if it works for you? Let me know if you want help with finding user_id.
a
can you tell me from where we have to find user id?
and i have shared the code after removing user id and slack id
p
this looks like an import issue @udaysidagana
u
@aarishmaqsood
user_id
is given at runtime, hence you can choose anything to identify a user. Also, can you update your SDK version if not already
pip install composio==0.8.0
?
@peter_signore yes
a
@Uday thanks it is working now
c
Awesome, Let me know if you need anything!
u
Could you make sure you are on the right env? Here try installing composio again:
pip install composio
.
a
yes
i will try to make new env
will share the update in a while
u
Sure, lmk if it's working!
just created the env still failed
this is with python 3.10 version
c
your file name is same as your imports, try changing the file name to something different like "composioapp.py".
a
ok
c
Try increasing the timeout, it should be '15' by default. Try giving a bigger number enough fro you to complete the Auth flow. Also, print the redirectUrl so you can use it to complete Auth flow.
a
ok
@udaysidagana you are genius it's working now. 😃 thanks btw
tell me about this is it correct?
u
User Id is something for you to specify, you can name it anything. user_id will be the name given to your connection. Make sure you keep it unique for each connected account.
a
oh ok I got it