Skip to content

Conversation

a-ader
Copy link
Contributor

@a-ader a-ader commented Oct 14, 2021

First ugly generated code example.

Usage example:

const api = usePaxful({
    ....
});

await api.paxfulApi.currency.list({
    locale: "ee"
})

const response = await api.paxfulApi.wallet.listAddresses()
response.data.addresses.map(a => console.log(a.address))

const response = await api.paxfulApi.user.info({
    username: "somebody"
})
response.data.lastSeen

const response = await api.paxfulApi.wallet.balance({cryptoCurrencyCode: "BTC"})
response.data.balance

@sergeil sergeil self-requested a review December 28, 2021 08:18
@a-ader a-ader changed the title [WIP] DP-222 fluent api DP-222 fluent api Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants