{"id":19162500,"url":"https://github.com/salmandabbakuti/apiclient","last_synced_at":"2026-05-18T14:08:08.335Z","repository":{"id":57151196,"uuid":"286178787","full_name":"Salmandabbakuti/apiClient","owner":"Salmandabbakuti","description":"HTTP API Client SDK for easier integration of API to plain html frontends using axios","archived":false,"fork":false,"pushed_at":"2023-04-21T08:22:20.000Z","size":28,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T05:02:52.215Z","etag":null,"topics":["api-server","axios","javasacript","nodejs","nodejs-server","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Salmandabbakuti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-09T06:15:53.000Z","updated_at":"2020-08-10T08:25:45.000Z","dependencies_parsed_at":"2024-09-24T01:43:13.681Z","dependency_job_id":"1913a7e7-c946-4276-ac79-f750687828b9","html_url":"https://github.com/Salmandabbakuti/apiClient","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"e5d2fad85a757e6c23e3cb95fec9bce4d47dd74d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salmandabbakuti%2FapiClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salmandabbakuti%2FapiClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salmandabbakuti%2FapiClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Salmandabbakuti%2FapiClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Salmandabbakuti","download_url":"https://codeload.github.com/Salmandabbakuti/apiClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245901,"owners_count":19771029,"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":["api-server","axios","javasacript","nodejs","nodejs-server","rest-api","restful-api"],"created_at":"2024-11-09T09:11:22.726Z","updated_at":"2026-05-18T14:08:08.290Z","avatar_url":"https://github.com/Salmandabbakuti.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apiClient\nHTTP API Client SDK bundle for easier API integration to plain html frontends\n\n#### Usage: \n\n- in your ```index.html```\n```\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.min.js\"\u003e\u003c/script\u003e //axios cdn\n\u003cscript src=\"https://unpkg.com/apiclient-dev-cdn@1.0.1/index.js\"\u003e\u003c/script\u003e  //apiClient sdk bundle\n\n```\n##### In Nodejs run time:\n\n- Same module can be used in nodejs run time too.\n\n###### Installation:\n\n```\nnpm install -g apiclient-dev\n```\n\n```\nconst { get, post } = require('apiclient-dev'); # v1.0.4 preferred\n\nasync function myFunction(){\n   const {err, response } = await get(\"http://localhost:8000/search\", {username:\"salman\"})\n      // your code to handle response or error here\n   }\n```\n##### Get request:\n\n```\nasync function users(){\nlet url = \"http://localhost:8000/users\";\nlet dataObj = {username:\"salman\"}\nconst {err, response} = await get(url, dataObj);\n}\n```\n##### Post request:\n\n```\nasync function login(){\nlet url = \"http://localhost:8000/login\";\nlet dataObj = {username:\"salman\", password:\"12345\"}\nconst {err, response} = await post(url, dataObj);\n}\n```\n\n##### Handling errors:\n```\nconst {err, response} = await get(\"http:localhost:8000/search\", {queryId:\"cars\"})\n\n//const {err, response} = await post(url, dataObj);\n\nif(err) {\nconsole.log(`it returned error: ${err}`)\nelse{\nconsole.log(`it returned response: ${response}`)\n```\n\n##### Author   \n\n##### :wave: [©Salman Dabbakuti](https://salmandabbakuti.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalmandabbakuti%2Fapiclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsalmandabbakuti%2Fapiclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsalmandabbakuti%2Fapiclient/lists"}