{"id":14989917,"url":"https://github.com/nathanielvarona/pritunl-api-shell","last_synced_at":"2025-04-12T16:21:28.649Z","repository":{"id":235533383,"uuid":"790869785","full_name":"nathanielvarona/pritunl-api-shell","owner":"nathanielvarona","description":"A Curl wrapper for secure and simplified command-line requests","archived":false,"fork":false,"pushed_at":"2024-06-11T00:30:31.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T07:34:13.558Z","etag":null,"topics":["bash","bash-script","bash-scripting","curl","curl-wrapper","pritunl","pritunl-api","pritunl-server","pritunl-vpn","shell","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/nathanielvarona.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":"2024-04-23T17:17:49.000Z","updated_at":"2024-06-13T01:25:39.000Z","dependencies_parsed_at":"2024-06-11T02:22:47.672Z","dependency_job_id":null,"html_url":"https://github.com/nathanielvarona/pritunl-api-shell","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"41d8143aaa0bb939527e9e791f0a63d4180ca08c"},"previous_names":["nathanielvarona/pritunl-api-shell"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielvarona%2Fpritunl-api-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielvarona%2Fpritunl-api-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielvarona%2Fpritunl-api-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielvarona%2Fpritunl-api-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanielvarona","download_url":"https://codeload.github.com/nathanielvarona/pritunl-api-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594191,"owners_count":21130316,"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":["bash","bash-script","bash-scripting","curl","curl-wrapper","pritunl","pritunl-api","pritunl-server","pritunl-vpn","shell","shell-script"],"created_at":"2024-09-24T14:19:08.068Z","updated_at":"2025-04-12T16:21:28.622Z","avatar_url":"https://github.com/nathanielvarona.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pritunl-api-shell\nPritunl API Shell - a Curl wrapper for secure and simplified command-line requests\n\n## Usage\n```bash\n./pritunl-api-shell \u003cmethod\u003e \u003cpath\u003e [payload]\n```\n\n## Examples\n### GET request:\n```bash\n./pritunl-api-shell GET /entity-uri\n```\n\n### POST request with payload:\n```bash\n./pritunl-api-shell POST /entity-uri '{\"name\":\"New Entity\"}'\n```\n\n### PUT request with payload:\n```bash\n./pritunl-api-shell PUT /entity-uri '{\"name\":\"Update Entity\"}'\n```\n\n### DELETE request:\n```bash\n./pritunl-api-shell DELETE /entity-uri\n```\n\n### Note:\n* Replace `\u003cmethod\u003e` with the desired HTTP method (`GET`, `POST`, `PUT`, `DELETE`, etc.)\n* Replace `\u003cpath\u003e` with the Pritunl API endpoint path\n* Replace `[payload]` with the optional request payload in JSON format\n\n## Installation:\n* Make the script executable: `chmod +x pritunl-api-shell`\n* Place the script in your preferred location, such as `~/bin` or `/usr/local/bin`\n\n## Configuration:\n* Set the `PRITUNL_API_TOKEN`, `PRITUNL_API_SECRET`, and `PRITUNL_BASE_URL` environment variables to authenticate with the Pritunl API\n\n## Alternatives:\n\n* For [Postman](https://www.postman.com/) Users\n  + For a seamless API authentication experience, check out the [Pritunl API Authentication (for Postman Pre-Request Script)](./postman) script. This Postman pre-request script generates the necessary authentication headers for Pritunl API requests. Simply import the script into your Postman collection and enjoy effortless authentication!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielvarona%2Fpritunl-api-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanielvarona%2Fpritunl-api-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielvarona%2Fpritunl-api-shell/lists"}