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

DP-222 fluent api #17

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open

DP-222 fluent api #17

wants to merge 28 commits into from

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