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

Add list accounts API #94

Merged
merged 1 commit into from Oct 4, 2018
Merged

Add list accounts API #94

merged 1 commit into from Oct 4, 2018

Conversation

mederic-p
Copy link
Contributor

Closes #84

Overview

This PR adds the list accounts API.

Usage

        let params: PaginatedListParams<Account> = PaginatedListParams<Account>(page: 1, perPage: 10, sortBy: .name, sortDirection: .ascending)
        Account.list(using: self.apiClient, params: params) { (result) in
            switch result {
            case let .success(data: paginatedAccounts):
                let accounts = paginatedAccounts.data
                print(accounts)
            case let .fail(error: error): print(error)
            }
        }

@ghost ghost added the s2/wip 🚧 This is still being worked on label Sep 18, 2018
@T-Dnzt T-Dnzt removed their assignment Sep 25, 2018
@mederic-p mederic-p changed the base branch from 85-get-wallet-for-acocunt to master October 4, 2018 05:10
@mederic-p mederic-p merged commit f15835c into master Oct 4, 2018
@ghost ghost removed the s2/wip 🚧 This is still being worked on label Oct 4, 2018
@mederic-p mederic-p deleted the 84-list-accounts branch October 4, 2018 05:19
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.

None yet

3 participants