Created
September 11, 2015 19:23
-
-
Save jeffmarshall/23b08f51f0d3789cc9b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"mapping":{"actionLink":null,"profileImage":null,"descriptionTitle":null,"descriptionBody":null,"footerCaption":null},"title":"nightmares","type":"single","template":"Temp_4","endpoint":"http://api.openweathermap.org/data/2.5/weather?q=montreal","createdAt":"2015-09-11T19:23:35.095Z","source":"TITLE = \"nightmares\",\r\nICON_URL = \"\",\r\nSUMMARY = \"\",\r\nCREATED_BY = \"Jeff Marshall\",\r\nGITHUB_ID = \"\",\r\nCREDITS = \"\",\r\nSETTINGS_TYPE = \"NONE\",\r\nPREVIEW_IMG= \"\",\r\nPREVIEW_TITLE= \"Some Template Title\"\r\n\r\n\r\nLOAD {\r\n\r\n var url = \"http://api.openweathermap.org/data/2.5/weather?q=montreal\"\r\n\r\n var location = APP.location\r\n\r\n var actualURL = url.replace(\"{lat}\",location.latitude).replace(\"{lng}\",location.longitude)\r\n\r\n var api = get(actualURL)\r\n\r\n return [[\r\n [\r\n \"actions\":[\r\n [\r\n \"icon\":\"source-icon\",\r\n \"function\":APP.webview(null)\r\n ]\r\n ]\r\n ],\r\n [\r\n \"profile\":[\r\n \"type\": \"large\",\r\n \"image\": null\r\n ]\r\n ],\r\n [\r\n \"description\":[\r\n \"type\": \"medium\",\r\n \"title\": null,\r\n \"body\": null\r\n ]\r\n ],\r\n [\r\n \"footer\":[\r\n \"align\": \"right\"\r\n \"caption\": null\r\n ]\r\n ]\r\n ]]\r\n\r\n}\r\n"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment