Back

[SOLVED] How to get the account Name?

  • 0
  • Web
RangerDev
20 May, 2023, 17:43

I would like to get the user name but it is not in the .json.

TypeScript
{
  '$id': '646906064ac4bd090d84',
  '$createdAt': '2023-05-20T17:40:22.315+00:00',
  userId: '6469043d1d85c243a1cb',
  expire: '2024-05-19 17:40:22.306',
  provider: 'email',
  providerUid: 'rangerdevv@gmail.com',
  providerAccessToken: '',
  providerAccessTokenExpiry: '',
  providerRefreshToken: '',
  ip: '96.236.210.249',
  osCode: '',
  osName: '',
  osVersion: '',
  clientType: 'library',
  clientCode: '',
  clientName: 'Node Fetch',
  clientVersion: '1.0',
  clientEngine: '',
  clientEngineVersion: '',
  deviceName: '',
  deviceBrand: '',
  deviceModel: '',
  countryCode: 'us',
  countryName: 'United States',
  current: true
}
TL;DR
User is trying to retrieve the user name from a JSON file but it is not present. They are using Appwrite version 1.1.2 on the web endpoint. They need to specify which function they are using to retrieve the data.
safwan
20 May, 2023, 17:44

what version of appwrite are you using?

RangerDev
20 May, 2023, 17:45

the latest one

RangerDev
20 May, 2023, 17:45

im pretty sure

safwan
20 May, 2023, 17:45

you can go to your appwrite console GUI, and it should say the version on the bottom right corner

safwan
20 May, 2023, 17:45

Please confirm

RangerDev
20 May, 2023, 17:46

1.1.2

RangerDev
20 May, 2023, 17:47

its 1.1.2

safwan
20 May, 2023, 17:47

so you're on cloud?

RangerDev
20 May, 2023, 17:50

waht do I do

safwan
20 May, 2023, 17:53

Which endpoint are you using to get this?

RangerDev
20 May, 2023, 17:54

wym

RangerDev
20 May, 2023, 17:54

like

RangerDev
20 May, 2023, 17:54

web, flutter etc?

RangerDev
20 May, 2023, 17:55

in that case I am using web

RangerDev
20 May, 2023, 17:56

the endpoint

RangerDev
20 May, 2023, 17:56
TypeScript
.setEndpoint('https://cloud.appwrite.io/v1')
safwan
20 May, 2023, 18:03

No, I meant which function are you using to get the data?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more