I understand C# and VB, but am a bit new to web development. I am trying to write a VB web app to pull data using NOAA's new (V2) API. Their site says to first request a token (done). Then to add it to the header and use a base URL (http://www.ncdc.noaa.gov/cdo-web/api/v2/) and append the appropriate endpoint after v2/...
It then gives me:
Header
token
Usage
curl -H "token:<token>" url
OR
$.ajax({ url:<url>, data:{<data>}, headers:{ token:<token> } })
Where <token> is the token obtained from the token request page.
My question is:
- How do they want me to add the token to the header? (I've tried a meta tag, but not sure if I added it properly) and
- How do I use that jquery ($.ajax) to pull the data I want?