{"id":22551732,"url":"https://github.com/orbit-apps/elixir-segment-api","last_synced_at":"2026-03-03T18:02:42.174Z","repository":{"id":49984157,"uuid":"167272781","full_name":"orbit-apps/elixir-segment-api","owner":"orbit-apps","description":"Elixir Segment API","archived":false,"fork":false,"pushed_at":"2026-01-30T14:08:23.000Z","size":124,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":15,"default_branch":"main","last_synced_at":"2026-01-31T07:20:48.385Z","etag":null,"topics":["library"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orbit-apps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-24T00:01:52.000Z","updated_at":"2026-01-30T14:08:26.000Z","dependencies_parsed_at":"2022-09-04T23:20:52.412Z","dependency_job_id":"e8d2e891-b079-4cdf-b65f-1f75fb99ab3b","html_url":"https://github.com/orbit-apps/elixir-segment-api","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/orbit-apps/elixir-segment-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbit-apps%2Felixir-segment-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbit-apps%2Felixir-segment-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbit-apps%2Felixir-segment-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbit-apps%2Felixir-segment-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orbit-apps","download_url":"https://codeload.github.com/orbit-apps/elixir-segment-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orbit-apps%2Felixir-segment-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30054003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T17:46:22.538Z","status":"ssl_error","status_checked_at":"2026-03-03T17:46:22.036Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["library"],"created_at":"2024-12-07T17:14:06.828Z","updated_at":"2026-03-03T18:02:42.146Z","avatar_url":"https://github.com/orbit-apps.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SegmentAPI\n\nBasic HTTP wrapper for the Segment service.\n\n## Installation\n\nPackage can be installed by adding `segment_api` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:segment_api, github: \"pixelunion/elixir-segment-api\", tag: \"v0.4.0\"}\n  ]\nend\n```\n\nAdd the following configuration to your config.ex\n\n```elixir\nconfig :segment_api, :api_key, \"\u003cyour encoded basic auth keys\u003e\"\n```\n\nUses Jason for json transcoding by default, if you want to configure it to use Poison add the following.\n\n```elixir\nconfig segment_api, json_library, Poison\n```\n\nUse like\n\n```elixir\napp_slug = \"USO\"\nshopify_domain = \"example.myshopify.com\"\ntype = :customer_data_request\n\nSegmentAPI.track(\n  SegmentAPI.event(app_slug, type),\n  shopify_domain,\n  %{data: %{foo: \"bar\"}},\n  %{integrations: %{All: true, Salesforce: false}}\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbit-apps%2Felixir-segment-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forbit-apps%2Felixir-segment-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forbit-apps%2Felixir-segment-api/lists"}