Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

blendmedia/mexpanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API wrapper forMixpanel

Installation

Ifavailable in Hex, the package can be installedby addingmexpanel to your list of dependencies inmix.exs:

defdepsdo[{:mexpanel,"~> 0.1.0"}]end

Usage

Mixpanel provides 2 endpoints:track andengage.

For both these endpoints, this library provides a struct withbuilder functions. Thenew function expects all mandatory parameters, additional properties can be set with functions

Track

aliasMexpanel.TrackRequesttrack=TrackRequest.new("123","user signed up",%{name:"Leif Gensert"})|>TrackRequest.time(DateTime.utc_now())|>TrackRequest.ip("144.10.58.141")|>TrackRequest.distinct_id("user:1")Mexpanel.request(track)

Engage

For the engage endpoint you will need to specify an operation. See theofficial documentation for all available operations.

aliasMexpanel.EngageRequestengage=EngageRequest.new("123","user:1")|>EngageRequest.time(DateTime.utc_now())|>EngageRequest.ip("144.10.58.141")|>EngageRequest.set(%{name:"Leif Gensert"})Mexpanel.request(engage)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2026 Movatter.jp