Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

min_id_length #33

Open
moubry opened this issue Sep 7, 2022 · 2 comments
Open

min_id_length #33

moubry opened this issue Sep 7, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@moubry
Copy link

moubry commented Sep 7, 2022

Is it possible to define the min_id_length option with this Go package?

Example HTTP request to /2/httpapi that I would like to build:

{
  "api_key": "...",
  "events": [
    {
      "user_id": "sean",
      "event_type": "new_channel_created",
    }
  ],
  "options": {
    "min_id_length": 3
  }
}

API reference: https://www.docs.developers.amplitude.com/analytics/apis/http-v2-api/#options

@moubry moubry added the enhancement New feature or request label Sep 7, 2022
@qingzhuozhen
Copy link
Contributor

Hi @moubry , for the min_id_length, we are going to support that as part of config like MinIDLength, which is on our roadmap now, will share the update once that is available.

cc @justin-fiedler @falconandy

@falconandy
Copy link
Contributor

falconandy commented Sep 9, 2022

Hi @moubry
Could you please try version v0.0.3?

config := amplitude.NewConfig(apiKey)
config.MinIDLength = 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants