Signals NB API Application Examples in Python?
I am looking for some complete working Python application programming examples that show how to authenticate, and retrieve data from the Signals NB API using "outside applications". My company needs to analyze Signals system statistics and usage data, experiment data, and do some analytics and reporting on usage, in order to increase adoption. ("You can not easily improve what you don't measure.") Revvity Signals does not have any "Developer's Guides" or developer documentation beyond the Swagger / OpenAPI REST API call snippets taken out of context. I could not find ANYTHING about how to use these REST calls in workflow contexts, in something like complete end-to-end example applications. Either these are closely guarded internal secrets, or the Signals have not imbibed any open source spirits yet. We need to build an open source community around applications. If anyone has any examples and you can post them in GitHub that would be great. Thank you. Rich Lysakowski
-
Official comment
At Revvity Signals, we welcome our customers to share their code examples as suggested.
-
I am also interested in working examples. Rich, did you find any?
0 -
For what it's worth, using `requests` library to query details of a reagent (knowing the id):
import requestsfrom pprint import pformaturl = f"{config.BASE_URL}/materials/Reagents (SNB)/assets/id/{reagent_id}"headers = {"x-api-key": config.API_KEY, # loaded from env vars"accept": "application/vnd.api+json",}params = {"fields": ["id", "eid"]}response = requests.get(url, headers=headers, params=params)if not response.ok:raise Exception(pformat(response.json()))pprint(response.json())0 -
There is now a Developer Intro Guide available -
https://revvitysignals.com/revvity-signals-developer-guide-overview
/hds
0
Please sign in to leave a comment.
Comments
4 comments