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

How to get data by filter date via canceled at in Recurly_SubscriptionList::get() method #211

Closed
vikaspaliwal opened this issue Mar 9, 2016 · 3 comments
Labels
V2 V2 Client

Comments

@vikaspaliwal
Copy link

How to get data by filter date via canceled at in Recurly_SubscriptionList::get() method

Currently it gives all data available in our account.

I need to data by some date range, please help.

$list = Recurly_SubscriptionList::get();

Also how can we use $params?

@drewish
Copy link

drewish commented Mar 9, 2016

You should be able to filter by state using the static helper methods on Recurly_SubscriptionList: https://github.com/recurly/recurly-client-php/blob/master/lib/recurly/subscription_list.php

Currently there is no way to do date filtering.

Sent from the iPhone so don't mind the typos.

@vikaspaliwal
Copy link
Author

Thanks

How to user page filtering pagination , since we are using below but it alwasy return all data

$subscriptions = Recurly_SubscriptionList::getExpired(array('per_page' => 2));

Also please let me know what per_page=>2 means

@drewish
Copy link

drewish commented Mar 10, 2016

The per_page just affects the number of records in each request. There is no effect on the results if you're using a for each loop to enumerate it.

@drewish drewish closed this as completed Sep 2, 2016
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants