{"id":16916479,"url":"https://github.com/swiftyspiffy/strawpollnet","last_synced_at":"2025-07-06T21:09:13.103Z","repository":{"id":78553433,"uuid":"78997924","full_name":"swiftyspiffy/StrawPollNET","owner":"swiftyspiffy","description":"Simple library for interfacing with the Strawpoll (original). You can create Strawpolls as well as view Strawpoll statistics.","archived":false,"fork":false,"pushed_at":"2019-01-31T03:47:13.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T15:42:33.137Z","etag":null,"topics":["api","csharp","poll","straw","strawpoll","strawpollme"],"latest_commit_sha":null,"homepage":"http://www.strawpoll.me/","language":"C#","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/swiftyspiffy.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":"2017-01-15T04:49:35.000Z","updated_at":"2024-04-02T19:21:02.000Z","dependencies_parsed_at":"2023-06-03T02:00:32.170Z","dependency_job_id":null,"html_url":"https://github.com/swiftyspiffy/StrawPollNET","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FStrawPollNET","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FStrawPollNET/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FStrawPollNET/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftyspiffy%2FStrawPollNET/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftyspiffy","download_url":"https://codeload.github.com/swiftyspiffy/StrawPollNET/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248633332,"owners_count":21136857,"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","csharp","poll","straw","strawpoll","strawpollme"],"created_at":"2024-10-13T19:27:50.926Z","updated_at":"2025-04-12T21:25:46.320Z","avatar_url":"https://github.com/swiftyspiffy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StrawpollNET - .NET Strawpoll Library for Creating and Accessing Strawpolls\n[![NuGet Pre Release](https://img.shields.io/nuget/vpre/StrawPollNET.svg)](https://www.nuget.org/packages/StrawPollNET)\n\n### Overview\nThis is a simple library designed to allow for the creation and accessing of Strawpolls in a really simple fashion. Synchronous and asynchrnous calls are available and all poll details (including vote counts) are returned when creating a new poll or fetching an existing poll.\n\n### Sample Implementations\nCreate Strawpoll\n```\n// Establish the poll settins\nstring pollTitle = \"Which of these are great movies? You can vote on multiple!\";\nList\u003cstring\u003e allOptions = new List\u003cstring\u003e() { \"Shrek\", \"Ants\", \"A Bug's Life\", \"Lion King\" };\nbool multipleChoice = true;\nStrawPollNET.Enums.DupCheck dupCheck = StrawPollNET.Enums.DupCheck.Normal;\nbool requireCaptcha = true;\n\n// Create the poll\nStrawPollNET.Models.CreatedPoll newPoll = StrawPollNET.API.Create.CreatePoll(pollTitle, allOptions, multipleChoice, dupCheck, requireCaptcha);\n\n// Show poll link\nConsole.WriteLine($\"Go vote at my new poll, available here: {newPoll.PollUrl}\");\n\n```\nOutput:\n```\nGo vote at my new poll, available here: https://strawpoll.me/12112663\n```\nFetch a Strawpoll\n```\n// Get the very first Strawpoll ever made\nint pollId = 1;\nStrawPollNET.Models.FetchedPoll fetchedPoll = StrawPollNET.API.Get.GetPoll(pollId);\n\n// Show results\nConsole.WriteLine(\"The current results are:\");\nforeach(KeyValuePair\u003cstring, int\u003e result in fetchedPoll.Results)\n    Console.WriteLine($\"-{result.Key}: {result.Value} votes\");\n```\nOutput:\n```\nThe current results are:\n-Shrek: 1 votes\n-Ants: 0 votes\n-A Bug's Life: 0 votes\n-Lion King: 0 votes\n```\n\n\n### Availability\nAvailable via Nuget: `Install-Package StrawPollNET`\n\n### Examples and Implementations\n- StrawpollNET Example Application - This project is included in this repo as a master example project.\n\n### Libraries Utilized\n- Newtonsoft.Json - JSON parsing class.  Used to parse responses from Strawpoll API\n\n### Contributors\n * Cole ([@swiftyspiffy](http://twitter.com/swiftyspiffy))\n \n### License\nMIT License. \u0026copy; 2016 Cole\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftyspiffy%2Fstrawpollnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftyspiffy%2Fstrawpollnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftyspiffy%2Fstrawpollnet/lists"}