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

Label name #160

Open
1 task done
kampit opened this issue Dec 18, 2024 · 0 comments
Open
1 task done

Label name #160

kampit opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
en Para solicitações em inglês. enhancement New feature or request

Comments

@kampit
Copy link

kampit commented Dec 18, 2024

I have searched for similar requests on GitHub and found none.

  • Yes

Feature type:

Functionality

What problem does the feature aim to solve?

I can retrieve the Label ID for (add or update), but I’m unsure how to get the corresponding Label Name. Is there an API endpoint or method available to fetch the label name using its ID?

{
  "full_payload": {
    "event": "labels.association",
    "instance": {
      "id": 47,
      "name": "WA-****-****-****",
      "description": null,
      "connectionStatus": "ONLINE",
      "ownerJid": "******@s.whatsapp.net",
      "profilePicUrl": "https://pps.whatsapp.net/v/t61.24694-24/**********_**********_**********_n.jpg",
      "createdAt": "2024-12-18T08:21:35.941Z",
      "updatedAt": "2024-12-18T10:48:28.802Z"
    },
    "data": {
      "type": "add",
      "association": {
        "type": "label_jid",
        "chatId": "******@s.whatsapp.net",
        "labelId": "2"
      }
    }
  }
}

How to get Label Name? Which endpoint should I use?

@kampit kampit added en Para solicitações em inglês. enhancement New feature or request labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en Para solicitações em inglês. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants