hanskanns Posted June 23, 2022 Share Posted June 23, 2022 Hello together, I can connect to a seek server api (via access_key) without problems with the seeq.spy module from https://pypi.org/project/seeq/ Does anyone know how connect with the seeq.sdk module from this package using a seeq access_key ? Link to comment Share on other sites More sharing options...
Sanman Posted June 23, 2022 Share Posted June 23, 2022 Check this post out: How to use the Seeq API/SDK in Python/Seeq Data Lab - Seeq Data Lab - Seeq Community Website Link to comment Share on other sites More sharing options...
hanskanns Posted June 23, 2022 Author Share Posted June 23, 2022 3 minutes ago, Sanman said: Check this post out: How to use the Seeq API/SDK in Python/Seeq Data Lab - Seeq Data Lab - Seeq Community Website Thanks I already checked that Page. It is still no clear for me, which lines to code to do the auth with an access_key Link to comment Share on other sites More sharing options...
Sanman Posted June 23, 2022 Share Posted June 23, 2022 access keys cannot be used to authenticate sdk. User has to use spy.login() method and pass access key. Then run “from seeq import sdk” and instantiate various endpoints like shown below for Items end point as an example. spy.client is the authentication command here: items_api = sdk.ItemsApi(spy.client) Link to comment Share on other sites More sharing options...
Thorsten Vogt Posted June 23, 2022 Share Posted June 23, 2022 Hi, you can use spy.login with the access_key parameter: spy.login(access_key="CagR-n4oQGqjlAb7e6fr3B", password="Ec9DaXnSXgaG969cjkv4d4iGdGiAah" ,url="https://myseeqserver") Regards, Thorsten Link to comment Share on other sites More sharing options...
hanskanns Posted June 23, 2022 Author Share Posted June 23, 2022 Thanks alot guys for you help. Working now from seeq import spy from seeq import sdk spy.login(access_key="CagR-n4oQGqjlAb7e6fr3B", password="Ec9DaXnSXgaG969cjkv4d4iGdGiAah" ,url="https://myseeqserver") items_api = sdk.ItemsApi(spy.client) # f.e. items_api.get_item_and_all_properties(id='4F88E997-FAAA-431E-873F-DEE98F0E653B') Link to comment Share on other sites More sharing options...
Sanman Posted June 23, 2022 Share Posted June 23, 2022 Great, I am assuming these are not real credentials haha Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now