Skip to content

Instantly share code, notes, and snippets.

@michaeldmueller
Created August 5, 2020 13:11
Show Gist options
  • Save michaeldmueller/cbc28a443f4033db60cea0a4ab74d039 to your computer and use it in GitHub Desktop.
Save michaeldmueller/cbc28a443f4033db60cea0a4ab74d039 to your computer and use it in GitHub Desktop.

getReferralData

/referral

Expected return

{
  "referrals_converted": 3,
  "credit_earned": 30.00,
  "current_account_credit": 50.00,
  "referral_link": "referral.foodiecard.com/1324132",
  "leaderboard": [
    {
      "email": "max****@gmail.com",
      "points": 1700,
      "position": 1
    },
    {
      "email": "leo****@gmail.com",
      "points": 1480,
      "position": 2
    },
    .
    .
    .
    {
      "email": "{user_email}",
      "points": 50,
      "position": 63
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment