{"id":13509564,"url":"https://github.com/blendmedia/mexpanel","last_synced_at":"2025-10-21T15:01:39.837Z","repository":{"id":57525767,"uuid":"133061270","full_name":"blendmedia/mexpanel","owner":"blendmedia","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-08T16:39:23.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T01:46:46.336Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blendmedia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-11T16:08:18.000Z","updated_at":"2019-07-08T16:39:25.000Z","dependencies_parsed_at":"2022-08-29T00:31:34.964Z","dependency_job_id":null,"html_url":"https://github.com/blendmedia/mexpanel","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/blendmedia%2Fmexpanel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendmedia%2Fmexpanel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendmedia%2Fmexpanel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blendmedia%2Fmexpanel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blendmedia","download_url":"https://codeload.github.com/blendmedia/mexpanel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246324100,"owners_count":20759077,"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":[],"created_at":"2024-08-01T02:01:09.646Z","updated_at":"2025-10-21T15:01:39.620Z","avatar_url":"https://github.com/blendmedia.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"# Mexpanel\n\nAPI wrapper for [Mixpanel](https://mixpanel.com)\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `mexpanel` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:mexpanel, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\n## Usage\n\nMixpanel provides 2 endpoints: [track](https://mixpanel.com/help/reference/http#tracking-via-http) and [engage](https://mixpanel.com/help/reference/http#people-analytics-updates).\n\nFor both these endpoints, this library provides a struct with [builder functions](https://medium.com/kkempin/builder-design-pattern-in-elixir-c841e7cea307). The `new` function expects all mandatory parameters, additional properties can be set with functions\n\n### Track\n\n```elixir\nalias Mexpanel.TrackRequest\ntrack = TrackRequest.new(\"123\", \"user signed up\", %{name: \"Leif Gensert\"})\n          |\u003e TrackRequest.time(DateTime.utc_now())\n          |\u003e TrackRequest.ip(\"144.10.58.141\")\n          |\u003e TrackRequest.distinct_id(\"user:1\")\n\nMexpanel.request(track)\n```\n\n### Engage\n\nFor the engage endpoint you will need to specify an operation. See the [official documentation](https://mixpanel.com/help/reference/http#update-operations) for all available operations.\n\n```elixir\nalias Mexpanel.EngageRequest\nengage = EngageRequest.new(\"123\", \"user:1\")\n          |\u003e EngageRequest.time(DateTime.utc_now())\n          |\u003e EngageRequest.ip(\"144.10.58.141\")\n          |\u003e EngageRequest.set(%{name: \"Leif Gensert\"})\n\nMexpanel.request(engage)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblendmedia%2Fmexpanel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblendmedia%2Fmexpanel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblendmedia%2Fmexpanel/lists"}