Skip to content

Instantly share code, notes, and snippets.

Last active October 7, 2019 06:14
What would you like to do?
var @apikey, @url, @response
set @apikey = Lookup("NASAapi","apikey","id","apod") // keep your apikey in a Data Extension
set @apikey = "7Apb3QN7qVsXPuPDcSZBKAPf8twca03C5w4Oxuyc" // or hardcode it into your CloudPage
set @url = concat('',@apikey)
set @response = HTTPGET(@url,false,0,@CallStatus)
@response: %%=v(@response)=%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment