You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 5, 2022. It is now read-only.
I know the client tracks it's usage of the API (via Silktide\Capiture\ApiUsageTracker) but I wanted something to get current credit balance from the server.
So I started to add a getApiUnitsBalance() in Silktide\SemRushApi\Client and a dedicated type in Silktide\SemRushApi\Data\Type but the current core code does not support multiple endpoints (accounts API uses http://fr.semrush.com/users/countapiunits.html) so my changes would be too huge or hacky. I stopped and used Guzzle to directly call the endpoint by hand.
Leaving this door opened to see if such feature is acceptable and if someone want to open a PR to add it.
(Sorry, second issue in short period of time :))
The SEMrush Accounts API is not supported, it seems only the Analytics API is (which is totally OK).
I know the client tracks it's usage of the API (via
Silktide\Capiture\ApiUsageTracker) but I wanted something to get current credit balance from the server.So I started to add a
getApiUnitsBalance()inSilktide\SemRushApi\Clientand a dedicated type inSilktide\SemRushApi\Data\Typebut the current core code does not support multiple endpoints (accounts API useshttp://fr.semrush.com/users/countapiunits.html) so my changes would be too huge or hacky. I stopped and used Guzzle to directly call the endpoint by hand.Leaving this door opened to see if such feature is acceptable and if someone want to open a PR to add it.