Skip to main content

avatarDataForProfile

avatarDataForProfile(variables, init)

avatarDataForProfile(variables, init?): Promise<TypedResponse<Response>>

Low-level function for making a avatarDataForProfile request.

Parameters

variables: Variables

init?: RequestInit

Returns

Promise<TypedResponse<Response>>

Reference

Example

Simple usage without error handling:

const response = await queries.avatarDataForProfile({
kaid: 'kaid_326465577260382527912172'
})
const json = await response.json()
const profile = json.data.user
const avatar = profile.avatar

Source

src/queries/avatarDataForProfile.ts:50

avatarDataForProfile(kaid, init)

avatarDataForProfile(kaid, init?): Promise<TypedResponse<Response>>

Parameters

kaid: `kaid_${number}`

init?: RequestInit

Returns

Promise<TypedResponse<Response>>

Example

Alternative usage:

const response = await queries.avatarDataForProfile('kaid_326465577260382527912172')
const json = await response.json()
const profile = json.data.user
const avatar = profile.avatar

Source

src/queries/avatarDataForProfile.ts:64