Difference between revisions of "DataZoa API Examples"

From dataZoa Wiki
Jump to: navigation, search
Line 1: Line 1:
 
  
 
The dataZoa API can be very handy for simple ''ad hoc'' tasks.   
 
The dataZoa API can be very handy for simple ''ad hoc'' tasks.   
 
<br><br>
 
<br><br>
<div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div><div class="Gdib" style="margin-left: 2.0em; ">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 class="imgGlyph24 imgIdea" style="vertical-align: top; "></div>
 
+
<div class="Gdib" style="margin-left: 2.0em; ">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>
<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><nowiki>
+
</nowiki></div>
</nowiki>
+
</div>
+
 
+
 
in your browser's address bar.  The results will require some reformatting, but it's fast and effective.
 
in your browser's address bar.  The results will require some reformatting, but it's fast and effective.
 
</div>
 
</div>
  
<div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div><div class="Gdib" style="margin-left: 2.0em; ">Perhaps even simpler, if you are comfortable with Windows commandline Powershell, you can you can just do this:
+
<div class="imgGlyph24 imgIdea" style="vertical-align: top; "></div>
 
+
<div class="Gdib" style="margin-left: 2.0em; ">Perhaps even simpler, if you are comfortable with Windows commandline Powershell, you can you can just do this:
<div>
+
<div><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
(curl "https://www.datazoa.com/api/apimain.asp?func=SeriesFromGL&glname=</nowiki><b>YourGroupName</b>&apikey=<b>YourAPIKey</b><nowiki> | ConvertFrom-Json).payload
+
</nowiki></div>
</nowiki>
+
</div>
+
 
+
 
</div>
 
</div>
  

Revision as of 13:14, 1 February 2019

The dataZoa API can be very handy for simple ad hoc tasks.

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.

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...

ExampleDescription
func=SeriesFromGL&glname=YourGroupName&apikey=YourAPIKeyGet the series keys from a grouplist