Skip to content
robert-valueguard edited this page Aug 21, 2024 · 1 revision

Me

Fetch information about the user

The code below gives an example of how to use the client to get information about their user.

import valueguard

vgClient = valueguard.Client()
vgClient.authenticate("<username>", "<password>")


print(vgClient.user())

Response

Field list

Field name Description Example
id User id 1234
username Name of user Test Testson
firm Information about the users firm {}

Firm

Field name Description Example
name Name of the firm Valueguard
frontpage_logo url to the big version of the logo https://test.se/testpicture.png
page_logo url to the small version of the logo https://test.se/testpicture_small.png
frontpage_image url to the frontpage image https://test.se/testpicture_frontpage.png
background_color The assigned background color #f07000

Raw request

Get

curl https://api.valueguard.se/v0/users/me?access_token={access_token}
Clone this wiki locally