Jump to content

Get user ID for an linked account


THE_SUPERMAN

Recommended Posts

Hi,

I enabled the option in IPS to log in using a third-party OAuth client.
I would like to obtain that user's ID in this third-party OAuth that was used by a particular user to log in. Which API endpoint should I use?

When I make a GET request for this endpoint https://example.com/api/core/members/1?key=example-key

I get this result(confidential data has been hidden with "XXX-XXX"):

{
    "id": 1,
    "name": "FNTWORK",
    "title": "",
    "timeZone": "America/Sao_Paulo",
    "formattedName": "FNTWORK",
    "primaryGroup": {
        "id": 4,
        "name": "Gerente",
        "formattedName": "Gerente"
    },
    "secondaryGroups": [],
    "email": "XXX-XXX@gmail.com",
    "joined": "2020-07-07T05:10:17Z",
    "registrationIpAddress": "XXX-XXX",
    "warningPoints": 0,
    "reputationPoints": 46,
    "photoUrl": "XXX-XXX",
    "photoUrlIsDefault": false,
    "coverPhotoUrl": "XXX-XXX",
    "profileUrl": "XXX-XXX",
    "validating": false,
    "posts": 103,
    "lastActivity": "2020-12-18T12:31:10Z",
    "lastVisit": "2020-12-18T10:09:53Z",
    "lastPost": "2020-12-17T06:21:32Z",
    "birthday": null,
    "profileViews": 585,
    "customFields": {
        "1": {
            "name": "Informações pessoais",
            "fields": {
                "6": {
                    "name": "Nome completo",
                    "value": "XXX-XXX"
                },
                "4": {
                    "name": "Sobre mim",
                    "value": null
                },
                "5": {
                    "name": "Telefone",
                    "value": null
                },
                "7": {
                    "name": "WhatsApp",
                    "value": null
                },
                "8": {
                    "name": "Telegram",
                    "value": null
                },
                "9": {
                    "name": "Facebook",
                    "value": null
                }
            }
        },
        "3": {
            "name": "Mercado Livre",
            "fields": {
                "10": {
                    "name": "Conta associada a esse usuário no Mercado Livre",
                    "value": null
                }
            }
        }
    }
}

 

Screenshot_170.png

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...