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

Feature request: How to add query params #6

Open
javiermanzano opened this issue May 6, 2016 · 2 comments
Open

Feature request: How to add query params #6

javiermanzano opened this issue May 6, 2016 · 2 comments

Comments

@javiermanzano
Copy link

I've been working with your SDK and I haven't found anything about adding query params to the requests.

I'm talking about this: https://docs.mangopay.com/api-references/sort-lists/

Is there any way to add those query params?

@aboutofpluto
Copy link
Contributor

Hello Javier,

There is no explicit way to add parameters to a request right now.
It could be added as an optional parameter to request() and anyRequest() defined in service.go:121 and service.go:247. As a list or url.Values.

Is it what you'd like to do?

Best regards
Anthony

@aboutofpluto
Copy link
Contributor

Hi,

I have worked on a new branch to make filters and sorts available.

https://github.com/gotsunami/mangopay2-go-sdk/tree/filter-sort

For now, only Tranfers() works with extra params. Can you give it a try? Explanations are in filter.go.

If it works OK, I'll rebuild the doc and add filters and sorts to other methods.

Regards,
Anthony

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

No branches or pull requests

2 participants