Jump to content

Connect via Python (seeq sdk) to Seeq API via access_key


Recommended Posts

  • Seeq Team

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...