{"id":13414065,"url":"https://github.com/ansd/lastpass-go","last_synced_at":"2025-03-21T19:33:19.439Z","repository":{"id":35475074,"uuid":"196410172","full_name":"ansd/lastpass-go","owner":"ansd","description":"Golang client for LastPass","archived":false,"fork":false,"pushed_at":"2023-05-25T14:48:47.000Z","size":284,"stargazers_count":35,"open_issues_count":3,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-01T09:33:46.159Z","etag":null,"topics":["api","go","golang","lastpass","library"],"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/ansd.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":"2019-07-11T14:26:39.000Z","updated_at":"2024-10-16T03:49:36.000Z","dependencies_parsed_at":"2024-06-18T20:10:04.757Z","dependency_job_id":"a2fb72ee-d93e-4e04-bde7-75d1d2df9304","html_url":"https://github.com/ansd/lastpass-go","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansd%2Flastpass-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansd%2Flastpass-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansd%2Flastpass-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansd%2Flastpass-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansd","download_url":"https://codeload.github.com/ansd/lastpass-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244159973,"owners_count":20408017,"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":["api","go","golang","lastpass","library"],"created_at":"2024-07-30T20:01:56.709Z","updated_at":"2025-03-21T19:33:18.986Z","avatar_url":"https://github.com/ansd.png","language":"Go","funding_links":[],"categories":["Third-party APIs","第三方api","Utility","第三方API","第三方API`第三方API 汇总`"],"sub_categories":["Utility/Miscellaneous","HTTP Clients","Fail injection","实用程序/Miscellaneous","查询语"],"readme":"[![Documentation](https://godoc.org/github.com/ansd/lastpass-go?status.svg)](https://pkg.go.dev/github.com/ansd/lastpass-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ansd/lastpass-go)](https://goreportcard.com/report/github.com/ansd/lastpass-go)\n![Test](https://github.com/ansd/lastpass-go/workflows/Test/badge.svg)\n# Go client for LastPass\n\n## Features\n- login with\n\t- user name and master password\n\t- two-factor authentication with out-of-band mechanism such as push notification to LastPass Authenticator or Duo Security\n\t- two-factor authentication with one-time password from LastPass Authenticator, Google Authenticator, Microsoft Authenticator, YubiKey, Duo Security, Sesame, etc.\n\t- trust: after first successful login with two-factor authentication, the second factor can be skipped\n- create account\n- read accounts\n- update account\n- delete account\n- create / read / update / delete account in shared folder\n- logout\n\n## Documentation\nhttps://pkg.go.dev/github.com/ansd/lastpass-go\n\n## Installation\n\nInstall:\n\n```shell\n$ go get github.com/ansd/lastpass-go\n```\n\nImport:\n\n```go\nimport \"github.com/ansd/lastpass-go\"\n```\n\n## Usage\n\nBelow, error handling is excluded for brevity.\n\nSee [examples](./examples) directory for more examples.\n\n```go\n// authenticate with LastPass servers\nclient, _ := lastpass.NewClient(context.Background(), \"user name\", \"master password\")\n\n// two-factor authentication with one-time password as second factor:\n// client, _ := lastpass.NewClient(context.Background(), \"user name\", \"master password\", lastpass.WithOneTimePassword(\"123456\"))\n\naccount := \u0026lastpass.Account{\n\tName:     \"my site\",\n\tUsername: \"my user\",\n\tPassword: \"my pwd\",\n\tURL:      \"https://myURL\",\n\tGroup:    \"my group\",\n\tNotes:    \"my notes\",\n}\n\n// Add() account\nclient.Add(context.Background(), account)\n\n// read all Accounts()\naccounts, _ := client.Accounts(context.Background())\n\n// Update() account\naccount.Password = \"updated password\"\nclient.Update(context.Background(), account)\n\n// Delete() account\nclient.Delete(context.Background(), account)\n\n// Logout()\nclient.Logout(context.Background())\n```\n\n## Notes\n\nThis repository is a port of [detunized/lastpass-ruby](https://github.com/detunized/lastpass-ruby)\nand a clone of [mattn/lastpass-go](https://github.com/mattn/lastpass-go).\n\nThis project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.\n\nThis repository's `ecb` (Electronic Codebook) package contains code which is \"Copyright 2013 The Go Authors. All rights reserved.\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansd%2Flastpass-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansd%2Flastpass-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansd%2Flastpass-go/lists"}