{"id":15754952,"url":"https://github.com/killmenot/restify-rest-client","last_synced_at":"2025-08-24T10:23:31.235Z","repository":{"id":66165298,"uuid":"59131165","full_name":"killmenot/restify-rest-client","owner":"killmenot","description":"Yet another REST client based on Restify","archived":false,"fork":false,"pushed_at":"2020-10-26T14:08:52.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T07:45:11.943Z","etag":null,"topics":[],"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/killmenot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-05-18T16:03:30.000Z","updated_at":"2021-05-31T22:54:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"00451880-6957-4523-b9a2-7a2d78f77ec3","html_url":"https://github.com/killmenot/restify-rest-client","commit_stats":null,"previous_names":["killmenot/rest-client"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/killmenot/restify-rest-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Frestify-rest-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Frestify-rest-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Frestify-rest-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Frestify-rest-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killmenot","download_url":"https://codeload.github.com/killmenot/restify-rest-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killmenot%2Frestify-rest-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271844748,"owners_count":24832817,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-04T08:06:04.780Z","updated_at":"2025-08-24T10:23:31.195Z","avatar_url":"https://github.com/killmenot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# restify-rest-client\n\nYet another REST client based on Restify.\n\n[![Build Status](https://travis-ci.org/killmenot/restify-rest-client.svg?branch=master)](https://travis-ci.org/killmenot/restify-rest-client) [![Coverage Status](https://coveralls.io/repos/github/killmenot/restify-rest-client/badge.svg?branch=master)](https://coveralls.io/github/killmenot/restify-rest-client?branch=master) [![Dependency Status](https://david-dm.org/killmenot/restify-rest-client.svg)](https://david-dm.org/killmenot/restify-rest-client) [![devDependencies Status](https://david-dm.org/killmenot/restify-rest-client/dev-status.svg)](https://david-dm.org/killmenot/restify-rest-client?type=dev) [![npm version](https://img.shields.io/npm/v/restify-rest-client.svg)](https://www.npmjs.com/package/restify-rest-client) [![Known Vulnerabilities](https://snyk.io/test/npm/restify-rest-client/badge.svg)](https://snyk.io/test/npm/restify-rest-client) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2a1f72a8e724405aa5c723a5dca34e90)](https://www.codacy.com/gh/killmenot/restify-rest-client/dashboard)\n\n\n## Install\n\n```\nnpm install restify-rest-client\n```\n\n\n## Examples\n\n```javascript\n'use strict';\n\nconst RestClient = require('restify-rest-client');\n\nconst options = {\n  restify: {\n    url: 'https://api.example.org'\n  }\n};\nconst restClient = new RestClient(options);\n\n// node callback style\nrestClient.get('/users/100/groups', (err, req, res, body) =\u003e {\n  if (err) {\n    return console.error(err);\n  }\n\n  console.log('body: %s', JSON.stringify(body));\n});\n\n// or using promise\nrestClient.get('/users/100/groups').then((result) =\u003e {\n  console.log('req:', result[0]);\n  console.log('res:', result[1]);\n  console.log('body: %s', JSON.stringify(result[2]));\n});\n\n// using promise-spread or bluebird packages\nrestClient.get('/users/100/groups').spread((req, res, body) =\u003e {\n  console.log('body: %s', JSON.stringify(body));\n});\n```\n\nYou can refer to other [examples](/examples) as a starting point for your web applications.\n\n\n## Options\n\n*   **options**\n      *   **restify** - the restify json client options. Read more [here](http://restify.com/docs/client-guide/)\n      *   **credentialsProvider** - the credentials provider instance. Default: `new DefaultCredentialsProvider()`\n\n\n## License\n\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillmenot%2Frestify-rest-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkillmenot%2Frestify-rest-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkillmenot%2Frestify-rest-client/lists"}