having trouble using the python resin-sdk. tried this 'module' object has no attribute when using Python SDK but it still doesnt work. can someone point me in the right directions? thanks!
Hey @maole,
Sorry for the troubles, we will add a getting started guide to our Python SDK docs really soon.
You can start using the sdk by doing
from resin import Resin
resin = Resin()
resin.auth.<function>
Here’s my code. I replaced my email and password.
from resin import Resin
resin = Resin()
credentials = {‘username’: ‘mymail@yahoo.com’, ‘password’: ‘******’}
resin.auth.login(**credentials)
i keep getting this error:
File “resin.py”, line 1, in
from resin import Resin
File “/data/resin.py”, line 1, in
from resin import Resin
ImportError: cannot import name Resin
What am i doing wrong?
i also tried Auth btwe.
@maoie, How did you install the python sdk?
sorry it took a long time to reply. i never got it to work. so i installed the java sdk instead. but i installed it using:
pip install git+https://github.com/resin-io/resin-sdk-python.git