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

Option to check credits #2

Closed
juniwalk opened this issue Nov 15, 2022 · 8 comments
Closed

Option to check credits #2

juniwalk opened this issue Nov 15, 2022 · 8 comments

Comments

@juniwalk
Copy link

Hello,
are there any plans to add option to check credits or will this be only available in HTTP api?

@lukaspijak
Copy link
Member

lukaspijak commented Nov 15, 2022

Hello, unfortunately the SDK does not have native support for this feature. You need to use the API https://help.bulkgate.com/docs/en/http-simple-check-credit-balance.html

We will also try to add this feature to the SDK or you can send PR.

@juniwalk
Copy link
Author

We will also try to add this feature to the SDK or you can send PR.

Alright I am just looking for options so if I end up implementing this I will try to send PR with balance checking.

@lukaspijak
Copy link
Member

I just added new integration API endpoint for this feature https://portal.bulkgate.com/api/1.0/integration/info

Now you can call this:

$response = $this->connection->send(new Connection\Request('info', new Message\Api([])));

@juniwalk
Copy link
Author

Thank you

@lukaspijak
Copy link
Member

I added new CreditChecker class for check credit. Does it meet your requirements?

@juniwalk
Copy link
Author

Looks great, I didn't get a chance to try it yet.

@Lumeriol
Copy link

Simple to use and gets all needed information, thanks for implementation 👍

@lukaspijak
Copy link
Member

New version released https://github.com/BulkGate/php-sdk/releases/tag/1.0.1

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

3 participants