Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPC Lookup returning unusable JSON #2

Open
saltyasterisk opened this issue Sep 6, 2023 · 0 comments
Open

UPC Lookup returning unusable JSON #2

saltyasterisk opened this issue Sep 6, 2023 · 0 comments

Comments

@saltyasterisk
Copy link

When running the UPCLookup (after putting in API key into SavannaAPI and importing everything necessary), I can get a barcode to successfully return a JSON but I cannot use or manipulate or place the JSON into a variable or anything useful. It just gets spit out to the commandline. Is there something I am supposed to do differently?

Example
Attempting to place the JSON into a variable for scripting
data = dict(loads(SavannaAPI.SavannaAPI.callService("barcode/lookup?upc=" + myupc)))
This should place the JSON into the data variable as a dict. it does nothing though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant