{"id":16544509,"url":"https://github.com/msoedov/ex_form","last_synced_at":"2025-09-06T10:33:27.847Z","repository":{"id":57500508,"uuid":"72966847","full_name":"msoedov/ex_form","owner":"msoedov","description":" Simplistic api wrapper for Typeform api without abusing macro/dsl","archived":false,"fork":false,"pushed_at":"2016-11-06T16:12:30.000Z","size":14,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-12T02:24:08.549Z","etag":null,"topics":["elixir","typeform-api","typefrom"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/msoedov.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":"2016-11-06T03:04:04.000Z","updated_at":"2023-09-01T12:17:39.000Z","dependencies_parsed_at":"2022-08-31T00:22:28.631Z","dependency_job_id":null,"html_url":"https://github.com/msoedov/ex_form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/msoedov/ex_form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fex_form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fex_form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fex_form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fex_form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msoedov","download_url":"https://codeload.github.com/msoedov/ex_form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoedov%2Fex_form/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273892816,"owners_count":25186560,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elixir","typeform-api","typefrom"],"created_at":"2024-10-11T19:03:01.971Z","updated_at":"2025-09-06T10:33:27.584Z","avatar_url":"https://github.com/msoedov.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ExForm\n\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/msoedov/ex_form/blob/master/LICENSE)\n[![Deps Status](https://beta.hexfaktor.org/badge/all/github/msoedov/ex_form.svg)](https://beta.hexfaktor.org/github/msoedov/ex_form)\n[![Inline docs](https://inch-ci.org/github/msoedov/ex_form.svg?branch=master)](https://inch-ci.org/github/msoedov/ex_form) [![Hex Version](https://img.shields.io/hexpm/v/ex_form.svg)](https://hex.pm/packages/ex_form)\n[![Code TriagersBadge](https://www.codetriage.com/msoedov/ex_form/badges/users.svg)](https://www.codetriage.com/msoedov/ex_form)\n\nSimplistic api wrapper for Typeform api without abusing macro/dsl.\n\nFor more information about api check [Typeform docs](http://docs.typeform.io/)\n\n## Link for API key\nSign up for [one here](http://docs.typeform.io/page/signup).\n\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n  1. Add `ex_form` to your list of dependencies in `mix.exs`:\n\n    ```elixir\n    def deps do\n      [{:ex_form, \"~\u003e 0.1.0\"}]\n    end\n    ```\n\n  2. Ensure `ex_form` is started before your application:\n\n    ```elixir\n    def application do\n      [applications: [:ex_form]]\n    end\n    ```\n\n## Examples\n\n```elixir\n{:ok, form} = ExForm.new\n|\u003e ExForm.short_text(\"A short text\", max_characters = 14)\n|\u003e ExForm.long_text(\"Long text here\")\n|\u003e ExForm.yes_no(\"Will Trump win?\")\n|\u003e ExForm.number(\"Lucky number?\")\n|\u003e ExForm.opinion_scale(\"Rate this test?\", \"Could be better\", \"Okay\", \"Awesome\")\n|\u003e ExForm.rating(\"Whatever\")\n|\u003e ExForm.publish(\"Awesome form tittle\", \"http://requestb.in/112mjyd1\")\n\niex\u003e form\n%{\"_links\" =\u003e [%{\"href\" =\u003e \"https://api.typeform.io/v0.4/forms/xd6ZCNMK3h\", \"rel\" =\u003e \"self\"}, %{\"href\" =\u003e \"https://forms.typeform.io/to/JHSAzF4qLb\", \"rel\" =\u003e \"form_render\"}, %{\"href\" =\u003e \"https://api.typeform.io/v0.4/urls/JHSAzF4qLb\", \"rel\" =\u003e \"url\"}], \"fields\" =\u003e [%{\"id\" =\u003e 49056886, \"max_characters\" =\u003e 14, \"question\" =\u003e \"A short text\", \"type\" =\u003e \"short_text\"}, %{\"id\" =\u003e 49056887, \"question\" =\u003e \"Long text here\", \"type\" =\u003e \"long_text\"}, %{\"id\" =\u003e 49056888, \"question\" =\u003e \"Will Trump win?\", \"type\" =\u003e \"yes_no\"}, %{\"id\" =\u003e 49056889, \"question\" =\u003e \"Lucky number?\", \"type\" =\u003e \"number\"}, %{\"id\" =\u003e 49056890, \"labels\" =\u003e %{\"center\" =\u003e \"Okay\", \"left\" =\u003e \"Could be better\", \"right\" =\u003e \"Awesome\"}, \"question\" =\u003e \"Rate this test?\", \"steps\" =\u003e 11, \"type\" =\u003e \"opinion_scale\"}, %{\"id\" =\u003e 49056891, \"question\" =\u003e \"Whatever\", \"shape\" =\u003e \"star\", \"steps\" =\u003e 5, \"type\" =\u003e \"rating\"}], \"id\" =\u003e \"xd6ZCNMK3h\", \"tags\" =\u003e [\"deafult\"], \"title\" =\u003e \"Awesome form tittle\", \"urls\" =\u003e [%{\"form_id\" =\u003e \"xd6ZCNMK3h\", \"id\" =\u003e \"JHSAzF4qLb\", \"version\" =\u003e \"v0.4\"}], \"version\" =\u003e \"v0.4\", \"webhook_submit_url\" =\u003e \"http://requestb.in/112mjyd1\"}\n```\n\nJust build and prepare\n```elixir\nform_payload = ExForm.new\n|\u003e ExForm.short_text(\"A short text\", max_characters = 14)\n|\u003e ExForm.long_text(\"Long text here\")\n|\u003e ExForm.yes_no(\"Will Trump win?\")\n|\u003e ExForm.number(\"Lucky number?\")\n|\u003e ExForm.opinion_scale(\"Rate this test?\", \"Could be better\", \"Okay\", \"Awesome\")\n|\u003e ExForm.rating(\"Whatever\")\n|\u003e ExForm.build(\"Awesome form tittle\", \"http://requestb.in/112mjyd1\")\n\n```\n\n\n## Configuration\n\nIn order to run `TYPE_SECRET` should be set in env\n```bash\nexport TYPE_SECRET=key-goes-here\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoedov%2Fex_form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsoedov%2Fex_form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoedov%2Fex_form/lists"}