{"_id":"@athlete-unseen/api-wrapper","_rev":"2-4173cad5ad49d8029cde84f904fe0b05","name":"@athlete-unseen/api-wrapper","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@athlete-unseen/api-wrapper","version":"1.0.0","description":"The offical AthleteUnseen API Wrapper for Node.js","main":"index.js","scripts":{"test":"wrapper.js"},"repository":{"type":"git","url":"git+https://github.com/athleteunseen/Node-API-Wrapper.git"},"keywords":["AthleteUnseen","Sports","Wrapper","API"],"author":{"name":"AthleteUnseen"},"license":"ISC","bugs":{"url":"https://github.com/athleteunseen/Node-API-Wrapper/issues"},"homepage":"https://github.com/athleteunseen/Node-API-Wrapper#readme","dependencies":{"axios":"^1.4.0"},"gitHead":"44f574c121e2eface631a220ebbc12a54984cbf8","_id":"@athlete-unseen/api-wrapper@1.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-45EUpvF3nX2h4I6IXHRNwNH3O9PG+96R5er3UCXNlppsg7YVH5Cu8if7SxAjGED0hdYPZAUQfLugL0BZSPwy/A==","shasum":"db7443ccdad446496d74007a8b9d8289239b5099","tarball":"https://registry.npmjs.org/@athlete-unseen/api-wrapper/-/api-wrapper-1.0.0.tgz","fileCount":6,"unpackedSize":4970,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtPqxKbUD9VZgwUGXurCmc+a9gRcsEB/ku12ZKu7lNfQIgHu+csh8oy4cSzLt6ulDgUigrI4ztQl4R8EvZCQtqQl8="}]},"_npmUser":{"name":"athlete-unseen","email":"rs.rudd@gmail.com"},"directories":{},"maintainers":[{"name":"athlete-unseen","email":"rs.rudd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-wrapper_1.0.0_1690519632337_0.33792046244006335"},"_hasShrinkwrap":false},"1.0.1":{"name":"@athlete-unseen/api-wrapper","version":"1.0.1","description":"The offical AthleteUnseen API Wrapper for Node.js","main":"wrapper.js","scripts":{"test":"wrapper.js"},"repository":{"type":"git","url":"git+https://github.com/athleteunseen/Node-API-Wrapper.git"},"keywords":["AthleteUnseen","Sports","Wrapper","API"],"author":{"name":"AthleteUnseen"},"license":"ISC","bugs":{"url":"https://github.com/athleteunseen/Node-API-Wrapper/issues"},"homepage":"https://github.com/athleteunseen/Node-API-Wrapper#readme","dependencies":{"@athlete-unseen/api-wrapper":"^1.0.0","axios":"^1.4.0"},"gitHead":"5cd9743c105ddf24ca28d40de77a3f6ad2cf6123","_id":"@athlete-unseen/api-wrapper@1.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-/tqCFfiHYyZYS0SFgaodxXbEWNMb1L9jLKin93tjSuwdAWSMG19NZmt2nE0cyKuJHYkIgvF1sTZPvaB24184ow==","shasum":"80f462e3be8d628e1e1ad8f006b02614e8c6b37f","tarball":"https://registry.npmjs.org/@athlete-unseen/api-wrapper/-/api-wrapper-1.0.1.tgz","fileCount":7,"unpackedSize":5453,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsuERg0r5AuFYDwHfjmINEOUwvCoyiOMBgbWBhMTxWuAiA0PgjN7XzrbUj0FKXwL+vrEF8K+tEZj+pVHttrCuZOaw=="}]},"_npmUser":{"name":"athlete-unseen","email":"rs.rudd@gmail.com"},"directories":{},"maintainers":[{"name":"athlete-unseen","email":"rs.rudd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-wrapper_1.0.1_1690519822342_0.08295941402418672"},"_hasShrinkwrap":false},"1.0.2":{"name":"@athlete-unseen/api-wrapper","version":"1.0.2","description":"The offical AthleteUnseen API Wrapper for Node.js","main":"wrapper.js","scripts":{"test":"wrapper.js"},"repository":{"type":"git","url":"git+https://github.com/athleteunseen/Node-API-Wrapper.git"},"keywords":["AthleteUnseen","Sports","Wrapper","API"],"author":{"name":"AthleteUnseen"},"license":"ISC","bugs":{"url":"https://github.com/athleteunseen/Node-API-Wrapper/issues"},"homepage":"https://github.com/athleteunseen/Node-API-Wrapper#readme","dependencies":{"@athlete-unseen/api-wrapper":"^1.0.1","axios":"^1.4.0"},"gitHead":"5cd9743c105ddf24ca28d40de77a3f6ad2cf6123","_id":"@athlete-unseen/api-wrapper@1.0.2","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-7qj3kBUQgQiprI0udmo4uva7VlSgES+haxEVnyTYefQpC/z9Pt2x/VoXsSMAqrMuzGloBXm+mieqhsOHbow2mA==","shasum":"af1d7bde75cb8cf8976b6854cf826eba5e981e70","tarball":"https://registry.npmjs.org/@athlete-unseen/api-wrapper/-/api-wrapper-1.0.2.tgz","fileCount":7,"unpackedSize":5486,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCspK+zldjcXRUPuR+HBnNPU1P9HxHzS+RFgiRzq0JBvAIhAJWXBAqLxLNuIcVEFy4g9hJ7aISJMX8MIJzoOdLnw0Si"}]},"_npmUser":{"name":"athlete-unseen","email":"rs.rudd@gmail.com"},"directories":{},"maintainers":[{"name":"athlete-unseen","email":"rs.rudd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/api-wrapper_1.0.2_1690519909598_0.2584917740989854"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-28T04:47:12.213Z","1.0.0":"2023-07-28T04:47:12.521Z","modified":"2023-07-28T04:51:49.919Z","1.0.1":"2023-07-28T04:50:22.479Z","1.0.2":"2023-07-28T04:51:49.763Z"},"maintainers":[{"name":"athlete-unseen","email":"rs.rudd@gmail.com"}],"description":"The offical AthleteUnseen API Wrapper for Node.js","homepage":"https://github.com/athleteunseen/Node-API-Wrapper#readme","keywords":["AthleteUnseen","Sports","Wrapper","API"],"repository":{"type":"git","url":"git+https://github.com/athleteunseen/Node-API-Wrapper.git"},"author":{"name":"AthleteUnseen"},"bugs":{"url":"https://github.com/athleteunseen/Node-API-Wrapper/issues"},"license":"ISC","readme":"# AthleteUnseen Node.js API Wrapper\n\nThe AthleteUnseen Node.js API Wrapper is a library that allows you to access the AthleteUnseen API and fetch random sports statistics in a simple and straightforward way.\n\n## Installation\n\nYou can install the AthleteUnseen Node.js API Wrapper using npm:\n\n```\nnpm install @athlete-unseen/api-wrapper\n```\n\n## Getting Started\n\nTo use the AthleteUnseen API Wrapper, you need to sign up for an API key on the [AthleteUnseen website](https://athleteunseen.com) (replace \"YOUR_API_KEY\" with your actual API key).\n\n```js\nconst AthleteUnseen = require('@athlete-unseen/api-wrapper');\n\nconst API_KEY = 'YOUR_API_KEY';\nconst AthleteUnseenAPI = new AthleteUnseen(API_KEY);\n\n// Fetch random sports statistics and log the result\nAthleteUnseenAPI.randStat((error, result) => {\n    if (error) {\n        console.error('Error fetching random sports statistics:', error);\n    } else {\n        console.log('Random Sports Statistics:', result);\n    }\n});\n```\n\n## Methods\n\n### randStat(callback)\n\nThis method fetches random sports statistics from the AthleteUnseen API.\n\n- Parameters:\n  - ```callback``` (function): A callback function that receives two parameters - ```error``` and ```result```. If the request is successful, ```result``` will contain the random sports statistics as an object. If an error occurs, ```error``` will contain the error details.\n\n## Example\n\n```js\nconst AthleteUnseen = require('@athlete-unseen/api-wrapper');\n\nconst API_KEY = 'YOUR_API_KEY';\nconst AthleteUnseenAPI = new AthleteUnseen(API_KEY);\n\n// Fetch random sports statistics and log the result\nAthleteUnseenAPI.randStat((error, result) => {\n    if (error) {\n        console.error('Error fetching random sports statistics:', error);\n    } else {\n        console.log('Random Sports Statistics:', result);\n    }\n});\n```\n\n## Contributing\n\nIf you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request on [GitHub](https://github.com/athleteunseen/Node-API-Wrapper).\n\n## License\n\nThis project is licensed under the [MIT License](https://opensource.org/licenses/MIT).\n","readmeFilename":"README.md"}