{"id":20651702,"url":"https://github.com/droidninja/reqwrapper","last_synced_at":"2026-04-16T17:01:52.340Z","repository":{"id":58239129,"uuid":"66132375","full_name":"DroidNinja/reqWrapper","owner":"DroidNinja","description":"ajax wrapper for handling all types of POST (form-encoded,json,multipart) and GET request without jquery","archived":false,"fork":false,"pushed_at":"2016-08-20T07:12:03.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T11:55:16.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/DroidNinja.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}},"created_at":"2016-08-20T06:31:40.000Z","updated_at":"2023-03-04T10:02:35.000Z","dependencies_parsed_at":"2022-08-30T22:42:01.825Z","dependency_job_id":null,"html_url":"https://github.com/DroidNinja/reqWrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DroidNinja/reqWrapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidNinja%2FreqWrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidNinja%2FreqWrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidNinja%2FreqWrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidNinja%2FreqWrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DroidNinja","download_url":"https://codeload.github.com/DroidNinja/reqWrapper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DroidNinja%2FreqWrapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31895650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-16T17:28:56.893Z","updated_at":"2026-04-16T17:01:52.300Z","avatar_url":"https://github.com/DroidNinja.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reqWrapper\najax wrapper for handling all types of POST (form-encoded,json,multipart) and GET request without jquery\n\n# Installation\n```sh\n$ bower install reqWrapper\n```\n\n# Usage\n\n**GET Request**\n\n`request.get(url, \u003cURL_QUERY_PARAMS\u003e)`\n\n```javascript\nrequest.get('\u003cYOUR_API_URL\u003e', null)\n   .success(function(response, xhr){\n       console.log(response);\n   })\n   .error(function(message, xhr){\n       console.log(message);\n   })\n   .always(function(){\n       console.log('always');\n   }).execute();\n```\n\n\n**POST (form-urlencoded) Request**\n\n`request.post(url, \u003cPOST_PARAMS\u003e, \u003cURL_QUERY_PARAMS\u003e)`\n\n```javascript\nrequest.post('\u003cYOUR_API_URL\u003e', {\n        \"username\" : \"droidninja\",\n        \"password\" : \"password\"\n    }, null)\n    .success(function(response, xhr){\n        console.log(generateFootfallPerDayJson(response));\n\n    })\n    .error(function(message, xhr){\n        console.log(message);\n    })\n    .always(function(){\n        console.log('always');\n    }).execute();\n```\n\n\n**POST (application/json) Request**\n\n```javascript\nrequest.post('\u003cYOUR_API_URL\u003e', {\n        \"username\" : \"droidninja\",\n        \"password\" : \"password\"\n    }, null)\n    .isJsonType()\n    .success(function(response, xhr){\n        console.log(generateFootfallPerDayJson(response));\n\n    })\n    .error(function(message, xhr){\n        console.log(message);\n    })\n    .always(function(){\n        console.log('always');\n    }).execute();\n```\n\n\n**POST (multipart-formdata) Request**\n\n```javascript\nvar fileObj = document.getElementById(\"myFileField\").files[0];\n\nrequest.post('\u003cYOUR_API_URL\u003e', {\n                profilePic: fileObj,\n                userId: 9\n            }, null)\n            .setHeaders({\n                \"X-Access-Token\" : \"\u003cSET_HEADERS_IF_ANY\u003e\"\n            })\n            .isMultipartType()\n            .success(function(response, xhr){\n                console.log(response);\n            })\n            .error(function(message, xhr){\n                console.log(message);\n            })\n            .always(function(){\n                console.log('always');\n            }).execute();\n```\n\nYou can include `setHeaders()` with any type of request to set custom headers.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidninja%2Freqwrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdroidninja%2Freqwrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdroidninja%2Freqwrapper/lists"}