Last active
February 18, 2020 10:51
-
-
Save parulnith/a18be8f9ed34783d06b16344a8cae744 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| links = result.json()[u"analytic"]["_links"] | |
| self_link = links["_self"] | |
| activation_link = links["activate"] | |
| # Request activation of the 'analytic' asset: | |
| activate_result = \ | |
| requests.get( | |
| activation_link, | |
| auth=HTTPBasicAuth(PLANET_API_KEY, '') | |
| ) | |
| activation_status_result = \ | |
| requests.get( | |
| self_link, | |
| auth=HTTPBasicAuth(PLANET_API_KEY, '') | |
| ) | |
| print(activation_status_result.json()["status"]) |
I am facing the same trouble.
Were u able to fix it?
I'm also facing this error, anyone have solution?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NameError Traceback (most recent call last)
in ()
----> 1 links = result.json()[u"analytic"]["_links"]
2 self_link = links["_self"]
3 activation_link = links["activate"]
4
5 # Request activation of the 'analytic' asset:
NameError: name 'result' is not defined
Im getting this error and I dont understand why?