senseobservationsystems / commonsense-python-lib

Library for using CommonSense API in Python applications
Apache License 2.0
4 stars 1 forks source link

content of credentials.txt #11

Closed stmeissner closed 11 years ago

stmeissner commented 11 years ago

Hi,

I'm wondering about the content of the credentials.txt file the test script makes use of. How should it look like? name - value - pairs? password plain or md5-encrypted?

yulrizka commented 11 years ago

Hi Stevan

if you are refering to the usage in https://github.com/senseobservationsystems/commonsense-python-lib/blob/master/SenseAPITest.py

then the format should be

{"username": "hello", "password": "plaintext"}

if you can see on https://github.com/senseobservationsystems/commonsense-python-lib/blob/master/SenseAPITest.py#L156

it then do the md5 hash

Regards,

stmeissner commented 11 years ago

thanks a lot Ahmy.

I suggest you put this example into the comments section at the beginning of the file https://github.com/senseobservationsystems/commonsense-python-lib/blob/master/SenseAPITest.py

cheeers Stefan