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

Access the rate limit headers #59

Open
electronick86 opened this issue Feb 7, 2022 · 1 comment
Open

Access the rate limit headers #59

electronick86 opened this issue Feb 7, 2022 · 1 comment

Comments

@electronick86
Copy link

Hello,

It seems that the headers about the rate limit of the api are not accessible when doing a call like

$response =  $mailerliteClient->groups()->addSubscriber(...);

$response contains only the body, but the response_code and the response headers are then no usable by the code. Is there an alternative?

Thanks!!!

@sfxon
Copy link

sfxon commented Sep 10, 2022

Had the same issues. Made a fork and added the ability to fetch the response-headers:

https://github.com/sfxon/mailerlite-api-v2-php-sdk

I'll think this over, maybe make a pull request on this, but I am not sure, if this is the most elegant way to handle this.
Would be even nicer, to have the response-headers attached to every single result.
Please contact me, if you are interested on this. I'll only put effort into this, if it is really required. :)

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