Difference between revisions of "DataZoa API Examples"
From dataZoa Wiki
Line 4: | Line 4: | ||
====dataZoa API from a browser==== | ====dataZoa API from a browser==== | ||
<div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div> | <div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div> | ||
− | <div class="Gdib | + | <div class="Gdib">You can use the API without programming, just using your everyday browser. For example, to get all of the series keys for a grouplist, enter: |
<div> | <div> | ||
<nowiki>https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=</nowiki><b>YourGroupName</b>&apikey=<b>YourAPIKey</b> | <nowiki>https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=</nowiki><b>YourGroupName</b>&apikey=<b>YourAPIKey</b> | ||
Line 13: | Line 13: | ||
====dataZoa API from a command line==== | ====dataZoa API from a command line==== | ||
<div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div> | <div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div> | ||
− | <div class="Gdib | + | <div class="Gdib">Perhaps even simpler, if you are comfortable with Windows commandline Powershell, you can you can just do this: |
<div> | <div> | ||
<nowiki>(curl "https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=</nowiki><b>YourGroupName</b>&apikey=<b>YourAPIKey</b><nowiki> | ConvertFrom-Json).payload</nowiki> | <nowiki>(curl "https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=</nowiki><b>YourGroupName</b>&apikey=<b>YourAPIKey</b><nowiki> | ConvertFrom-Json).payload</nowiki> |
Revision as of 13:19, 1 February 2019
The dataZoa API can be very handy for simple ad hoc tasks.
dataZoa API from a browser
You can use the API without programming, just using your everyday browser. For example, to get all of the series keys for a grouplist, enter:
https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=YourGroupName&apikey=YourAPIKey
in your browser's address bar. The results will require some reformatting, but it's fast and effective.
dataZoa API from a command line
Perhaps even simpler, if you are comfortable with Windows commandline Powershell, you can you can just do this:
(curl "https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=YourGroupName&apikey=YourAPIKey | ConvertFrom-Json).payload
Here are a few examples...
Example | Description |
---|---|
func=SeriesFromGL&glname=YourGroupName&apikey=YourAPIKey | Get the series keys from a grouplist |