{"id":37196574,"url":"https://github.com/gadost/go-lwapi","last_synced_at":"2026-01-14T22:52:12.735Z","repository":{"id":45973113,"uuid":"514965653","full_name":"gadost/go-lwapi","owner":"gadost","description":"Leaseweb Dedicated \u0026 Virtual Servers  V2 JSON-RPC API in Golang","archived":false,"fork":false,"pushed_at":"2023-11-03T14:49:45.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T11:51:11.391Z","etag":null,"topics":["api-client","golang","leaseweb","leaseweb-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gadost.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":"2022-07-17T22:04:54.000Z","updated_at":"2022-07-18T12:19:16.000Z","dependencies_parsed_at":"2022-07-18T04:16:59.958Z","dependency_job_id":null,"html_url":"https://github.com/gadost/go-lwapi","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gadost/go-lwapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadost%2Fgo-lwapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadost%2Fgo-lwapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadost%2Fgo-lwapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadost%2Fgo-lwapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gadost","download_url":"https://codeload.github.com/gadost/go-lwapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gadost%2Fgo-lwapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":["api-client","golang","leaseweb","leaseweb-api"],"created_at":"2026-01-14T22:52:12.216Z","updated_at":"2026-01-14T22:52:12.715Z","avatar_url":"https://github.com/gadost.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-lwapi\n\nLeaseweb Dedicated \u0026 Virtual Servers V2 JSON-RPC API in Golang\n\n[![Build Status](https://travis-ci.org/gadost/go-lwapi.svg?branch=main)](https://travis-ci.org/gadost/go-lwapi) [![GoDoc](https://godoc.org/github.com/gadost/go-lwapi?status.svg)](https://godoc.org/github.com/gadost/go-lwapi)   [![codecov](https://codecov.io/gh/gadost/go-lwapi/branch/main/graph/badge.svg)](https://codecov.io/gh/gadost/go-lwapi) [![Go Report Card](https://goreportcard.com/badge/github.com/gadost/go-lwapi)](https://goreportcard.com/report/github.com/gadost/go-lwapi)\n\n## Install\n\n```sh\ngo get -u github.com/gadost/go-lwapi@latest\n```\n\n## Example\n\n```go\npackage main \n\nimport (\n    \"github.com/gadost/go-lwapi\"\n)\nfunc main() {\n    // Dedicated Server AAPI\n    api := lwapi.New(\"testtoken\").DedicatedServers()\n\n    resp, err := api.ServerReferenceUpdate(12345, \u0026lwapi.Reference{Reference: \"test-server\"})\n    ...\n\n    // Virtual Server API\n    api := lwapi.New(\"testtoken\").VirtualServers()\n\n    resp, err := api.VirtualServer(12345)\n    ...\n}\n```\n\n## Query params\n\n```go\napi := lwapi.New(\"testtoken\").DedicatedServers()\n\nq := make(map[string]interface{})\nq[\"limit\"] = 20\nq[\"privateNetworkEnabled\"] = \"true\"\nq[\"ip\"] = \"127.0.0.1\"\n\nresp, err := api.Servers(q)\n...\n```\n\n## Time helper ISO-8601\n\n```go\n to := FormatISO8601(time.Now().Add(60*time.Day))\n```\n\nreturns time in ISO-8601 format\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadost%2Fgo-lwapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgadost%2Fgo-lwapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgadost%2Fgo-lwapi/lists"}