{"id":16719596,"url":"https://github.com/addingama/geeknesia-sample-webapp","last_synced_at":"2026-01-03T04:32:32.761Z","repository":{"id":30680686,"uuid":"34236551","full_name":"addingama/geeknesia-sample-webapp","owner":"addingama","description":"This is sample code how to use geeknesia api to retrieve data using webapp","archived":false,"fork":false,"pushed_at":"2015-06-19T03:36:39.000Z","size":396,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T17:54:44.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/addingama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-20T03:50:34.000Z","updated_at":"2015-05-06T03:25:45.000Z","dependencies_parsed_at":"2022-09-18T06:35:59.859Z","dependency_job_id":null,"html_url":"https://github.com/addingama/geeknesia-sample-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addingama%2Fgeeknesia-sample-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addingama%2Fgeeknesia-sample-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addingama%2Fgeeknesia-sample-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/addingama%2Fgeeknesia-sample-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/addingama","download_url":"https://codeload.github.com/addingama/geeknesia-sample-webapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243722708,"owners_count":20337244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T21:43:54.841Z","updated_at":"2026-01-03T04:32:32.722Z","avatar_url":"https://github.com/addingama.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geeknesia-sample-code\nThis is sample code how to use geeknesia api to retrieve data using webapp with angular.js.\n\nIf you use jQuery instead of angular.js, you need to manual binding the api response with the view.\n\n#### Sample using jQuery\nCheck your api key using hello api\n```\n$.ajax({\n  method: \"GET\",\n  url: \"http://api.geeknesia.com/api/hello\",\n  headers: {api_key:\"d5eb7e61ca97bc30692d7aec3bb5861f\"}\n}).done(function( msg ) {\n    alert( \"Response : \" + msg );\n});\n```\nSend data to server\n```\n$.ajax({\n  method: \"GET\",\n  url: 'http://api.geeknesia.com/api/data?api_key=d5eb7e61ca97bc30692d7aec3bb5861f\u0026attributes={\"temperature\":\"25\"}',\n}).done(function( msg ) {\n    console.log(msg)\n});\n```\nRetrieve data from server\n```\n$.ajax({\n  method: \"POST\",\n  url: 'http://api.geeknesia.com/api/attributes',\n  headers: {\n  \tapi_key : \"d5eb7e61ca97bc30692d7aec3bb5861f\"\n  },\n  data : {\n  \tlimit : 10,\n  \tfilter : \"datetime\", // optional\n  \tfrom : \"2015-04-20T05:16:00.000Z\", // date using ISO format optional\n  \tto :  \"2015-04-21T05:16:00.000Z\"// date using ISO format optional\n  }\n}).done(function( msg ) {\n    console.log(msg)\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddingama%2Fgeeknesia-sample-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddingama%2Fgeeknesia-sample-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddingama%2Fgeeknesia-sample-webapp/lists"}