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

feat(account): add channel_handle to AccountItem #789

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

asomethings
Copy link
Contributor

This PR adds channel_handle to AccountItem

Example response from latest AccountListEndpoint. It has new property called channelHandle.

{
  "contents": [
    {
      "accountItemSectionRenderer": {
        "contents": [
          {
            "accountItem": {
              "accountName": { "simpleText": "<Account Name>" },
              "accountPhoto": {
                "thumbnails": [
                  {
                    "url": "<URL>",
                    "width": 216,
                    "height": 216
                  }
                ]
              },
              "isSelected": true,
              "isDisabled": false,
              "hasChannel": true,
              "serviceEndpoint": {
                "selectActiveIdentityEndpoint": {
                  "supportedTokens": [
                    { "accountStateToken": { "hasChannel": true, "isMerged": true, "obfuscatedGaiaId": "<obfuscatedGaiaId>" } },
                    { "offlineCacheKeyToken": { "clientCacheKey": "<clientCacheKey>" } },
                    { "datasyncIdToken": { "datasyncIdToken": "<datasyncIdToken>" } }
                  ]
                }
              },
              "accountByline": { "simpleText": "<AccountByline>" },
              "channelHandle": { "simpleText": "@<Handle>" },
              "shouldShowPremiumLogo": false
            }
          }
        ]
      }
    }
  ]
}

@LuanRT LuanRT merged commit 677e1f0 into LuanRT:main Oct 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants