{"id":28374241,"url":"https://github.com/gocodebox/llms-api-node","last_synced_at":"2025-06-25T18:30:49.169Z","repository":{"id":65765291,"uuid":"198699492","full_name":"gocodebox/llms-api-node","owner":"gocodebox","description":"Node.js wrapper for the LifterLMS REST API","archived":false,"fork":false,"pushed_at":"2025-05-14T00:24:32.000Z","size":142,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-29T21:12:20.604Z","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/gocodebox.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,"zenodo":null}},"created_at":"2019-07-24T19:42:00.000Z","updated_at":"2025-05-14T00:24:36.000Z","dependencies_parsed_at":"2023-10-20T16:47:34.158Z","dependency_job_id":"2419b038-1d5e-480a-8d06-58c30f29959c","html_url":"https://github.com/gocodebox/llms-api-node","commit_stats":{"total_commits":48,"total_committers":5,"mean_commits":9.6,"dds":0.5208333333333333,"last_synced_commit":"00a4b9547daae6fc8a5dd89bb8cfdece35d4c4f7"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/gocodebox/llms-api-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocodebox%2Fllms-api-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocodebox%2Fllms-api-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocodebox%2Fllms-api-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocodebox%2Fllms-api-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocodebox","download_url":"https://codeload.github.com/gocodebox/llms-api-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocodebox%2Fllms-api-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261930334,"owners_count":23231860,"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":"2025-05-29T21:12:03.705Z","updated_at":"2025-06-25T18:30:49.162Z","avatar_url":"https://github.com/gocodebox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"LifterLMS REST API Wrapper - Node.js\n------------------------------------\n\n[![CircleCI](https://circleci.com/gh/gocodebox/llms-api-node.svg?style=svg)](https://circleci.com/gh/gocodebox/llms-api-node)\n[![Maintainability](https://api.codeclimate.com/v1/badges/1bb172a399b0e272fc05/maintainability)](https://codeclimate.com/github/gocodebox/llms-api-node/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/1bb172a399b0e272fc05/test_coverage)](https://codeclimate.com/github/gocodebox/llms-api-node/test_coverage)\n\nNode.js wrapper for the LifterLMS REST API\n\n[CHANGELOG](./CHANGELOG.md)\n\n## Installation\n\n```\nnpm install --save llms-api-node\n```\n\n## Setup and Configuration\n\n```js\nconst api = require( 'llms-api-node' );\n\n// Authenticate and configure the API.\nconst llms = new api( {\n  url: 'https://mysite.tld',\n  consumerKey: 'ck_XXXXXXXXXXXXXXXXXXXXXX',\n  consumerSecret: 'cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',\n} );\n```\n\n### Configuration Options\n\n| Option            | Type      | Required | Description                                                                                              |\n|-------------------|-----------|----------|----------------------------------------------------------------------------------------------------------|\n| `url`             | `string`  | yes      | The URL of the WordPress site where LifterLMS is installed. Example: https://mysite.tld                  |\n| `consumerKey`     | `string`  | yes      | Your API consumer key                                                                                    |\n| `consumerSecret`  | `string`  | yes      | Your API consumer secret                                                                                 |\n| `authMethod`      | `string`  | no       | Define the authorization method used. Accepts \"basic\" (default) or \"headers\".                            |\n| `version`         | `string`  | no       | LifterLMS REST API version. Default: \"v1\".                                                               |\n| `verifySsl`       | `bool`    | no       | Verify SSL certificates. Disable when testing with self-signed certificates. Default: `true`.            |\n| `encoding`        | `string`  | no       | Encoding. Default: \"utf-8\".                                                                              |\n| `port`            | `string`  | no       | Provide support for URLs with ports, eg: `8080`.                                                         |\n| `timeout`         | `int`     | no       | Define the request timeout (in seconds).                                                                 |\n| `wpPrefix`        | `string`  | no       | Define a custom REST API URL prefix to support custom prefixes defined via the `rest_url_prefix` filter. |\n| `wpVersion`       | `string`  | no       | Define the WP Core REST API version to use. Default: \"v2\".                                               |\n\n## Example Usage\n\n### Requests using async (promified) methods.\n\n```js\nllms.getAsync( '/courses' ).then( response =\u003e {\n  if ( 200 !== response.statusCode ) {\n    throw new Error( 'Error!' );\n  }\n  return JSON.parse( response.body );\n} );\n```\n\n### Requests using regular methods.\n\n```js\nllms.get( '/courses', function( err, data, res ) ) {\n  if ( err ) {\n    throw new Error( err );\n  }\n  return JSON.parse( data );\n}\n```\n\n## Releasing\n\n+ Commit and push changes\n+ Bump version with `npm version`\n+ Push changes and push tags `git push origin master \u0026\u0026 git push --tags`\n+ CircleCI automatically publishes to npm when tags are created.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocodebox%2Fllms-api-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocodebox%2Fllms-api-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocodebox%2Fllms-api-node/lists"}