I was searching for a quick way to compare two date & times to determine which was newer but was unable to find anything easily modifiable. I cobbled this code together and it seems to work just fine. I'm sure there is a better way to do it but I am pretty new to this. Any questions or suggestions please let me know.
I've trying to use the Google URL shortener API: https://developers.google.com/url-shortener/v1/getting_started to shorten URL's before posting them but I cant seem to get a response back. Any and all help would be appreciated.
jsonopen -uw surl https://www.googleapis.com/urlshortener/v1/url?key=[API KEY]
jsonurlmethod surl POST
jsonurlget surl "longUrl": "http://www.google.com"
echo -a $json(surl).UrlResponse
jsonurlclose