{"id":20005020,"url":"https://github.com/jozsefsallai/go-strawpoll","last_synced_at":"2025-06-23T04:33:28.974Z","repository":{"id":57515151,"uuid":"243981007","full_name":"jozsefsallai/go-strawpoll","owner":"jozsefsallai","description":"strawpoll API wrapper for go","archived":false,"fork":false,"pushed_at":"2020-02-29T14:21:47.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T00:44:43.120Z","etag":null,"topics":["golang","strawpoll"],"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/jozsefsallai.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":"2020-02-29T14:15:15.000Z","updated_at":"2020-02-29T14:22:47.000Z","dependencies_parsed_at":"2022-08-30T01:41:50.041Z","dependency_job_id":null,"html_url":"https://github.com/jozsefsallai/go-strawpoll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jozsefsallai/go-strawpoll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Fgo-strawpoll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Fgo-strawpoll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Fgo-strawpoll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Fgo-strawpoll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jozsefsallai","download_url":"https://codeload.github.com/jozsefsallai/go-strawpoll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Fgo-strawpoll/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261415372,"owners_count":23155022,"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":["golang","strawpoll"],"created_at":"2024-11-13T05:37:36.344Z","updated_at":"2025-06-23T04:33:23.953Z","avatar_url":"https://github.com/jozsefsallai.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-strawpoll\n\ngo-strawpoll provides an easy way to fetch and create polls from/to strawpoll.me.\n\n## Getting Started\n\n**Add go-strawpoll to your dependencies:**\n```\ngo get -u github.com/jozsefsallai/go-strawpoll\n```\n\n**To fetch a poll:**\n\n```go\nfunc main() {\n  poll, err := strawpoll.Get(1)\n  if err != nil {\n    panic(err)\n  }\n  fmt.Println(poll.Title)\n}\n```\n\n(where `1` is the ID of the poll on strawpoll.me)\n\n**To create a poll:**\n\n```go\nfunc main() {\n  poll, err := strawpoll.Create(\n    \"title of the poll\",\n    []string{\"option 1\", \"option 2\", \"option 3\"}, // at least 2\n    false, // multi-choice\n    strawpoll.DupcheckNormal, // duplication checking level\n    false, // require CAPTCHA\n  )\n\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(poll.ID)\n}\n```\n\n## Documentation\n\nhttps://godoc.org/github.com/jozsefsallai/go-strawpoll\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjozsefsallai%2Fgo-strawpoll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjozsefsallai%2Fgo-strawpoll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjozsefsallai%2Fgo-strawpoll/lists"}